Re: [PHP-DEV] [RFC] Importing namespaced functions

2013-08-15 Thread Marcello Duarte
Hi, Are there any thoughts regarding importing multiple functions of a namespace with a wildcard? A use case being, for example, assertions from a testing framework. use (or use function) TestingFramework\Assertions\chosen wildcard here; // in java * is used for wildcard Regards, Marcello

Re: [PHP-DEV] Abstract properties

2013-03-18 Thread Marcello Duarte
On 1 Dec 2012, at 12:34, Sebastian Krebs wrote: Hi, Don't want to start a big discussion, but is there a concrete reason, why abstract properties (or a kind of abstract) are not supported? Hi, The reason for not having abstract properties is that when you are defining a type you don't

[PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Marcello Duarte
Inspired by Sara, here is another RFC, I finally got around to draft: https://wiki.php.net/rfc/short-syntax-for-anonymous-function Please feedback, -- Marcello Duarte

Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Marcello Duarte
, Derick Rethans wrote: On Tue, 19 Feb 2013, Marcello Duarte wrote: Inspired by Sara, here is another RFC, I finally got around to draft: https://wiki.php.net/rfc/short-syntax-for-anonymous-function I'd be really reluctant to add this -- it's yet another (superfluous) syntactical sugar

Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Marcello Duarte
; } Versus one potential option: ($value) |$m| = $m * $n; My apologies, this was meant to read: ($n) |$m| = $m * $n; -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- Best regards, Andrey -- Marcello Duarte

Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Marcello Duarte
to use. The purpose of this feature is focused on the later, to allow the construction of DSLs, so users of your code can focus on the task at hand. -- Marcello Duarte -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] Short syntax for anonymous functions

2013-02-19 Thread Marcello Duarte
On 19 Feb 2013, at 17:32, Leigh wrote: On 19 February 2013 16:46, Marcello Duarte mdua...@inviqa.com wrote: I find that more and more my developers have to learn ruby just to be able to work in our projects. We are one of the largest PHP shops in Europe and even the proprietary tools we

Re: [PHP-DEV] Wiki account

2012-10-18 Thread Marcello Duarte
On 18 Oct 2012, at 02:20, Hannes Magnusson wrote: On Wed, Oct 17, 2012 at 2:49 AM, Pierre Joye pierre@gmail.com wrote: Marcello likes to write a RFC On Wed, Oct 17, 2012 at 11:28 AM, Marcello Duarte marcello.dua...@gmail.com wrote: Hi, Can I please have a wiki account? People

Re: [PHP-DEV] Wiki account

2012-10-18 Thread Marcello Duarte
On 18 Oct 2012, at 09:13, Hannes Magnusson wrote: On Thu, Oct 18, 2012 at 1:08 AM, Marcello Duarte marcello.dua...@gmail.com wrote: On 18 Oct 2012, at 02:20, Hannes Magnusson wrote: On Wed, Oct 17, 2012 at 2:49 AM, Pierre Joye pierre@gmail.com wrote: Marcello likes to write a RFC

Re: [PHP-DEV] Wiki account

2012-10-18 Thread Marcello Duarte
On 18 Oct 2012, at 09:37, Derick Rethans wrote: Marcello Duarte marcello.dua...@gmail.com wrote: On 18 Oct 2012, at 09:13, Hannes Magnusson wrote: On Thu, Oct 18, 2012 at 1:08 AM, Marcello Duarte marcello.dua...@gmail.com wrote: On 18 Oct 2012, at 02:20, Hannes Magnusson wrote: On Wed

[PHP-DEV] Wiki account

2012-10-17 Thread Marcello Duarte
Hi, Can I please have a wiki account? Regards, Marcello -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Closures: Object extension

2012-01-06 Thread Marcello Duarte
Hi, What is the status of this RFC: Closures: Object extension? https://wiki.php.net/rfc/closures/object-extension _md

Re: [PHP-DEV] RFC: Making T_FUNCTION optional in method declarations

2010-11-27 Thread Marcello Duarte
+1 to being able to omit the function keyword. 2010/11/27 Johannes Schlüter johan...@schlueters.de: Hi, every now and then while writing classes I forget to add the function keyword between my visibility modifier and the method name in a class declaration. I don't think it is required for