[PHP-DEV] ->{} = syntax ?

2010-09-10 Thread Frederic Hardy
Hello ! I have seen this comment about ->{} = syntax in log of revision 302923 of trunk : "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems to have been never an officially supported syntax and have never been a valid property name, is no longer allowed and PHP

Re: [PHP-DEV] ->{} = syntax ?

2010-09-10 Thread Johannes Schlüter
On Fri, 2010-09-10 at 09:05 +0200, Frederic Hardy wrote: > Hello ! > > I have seen this comment about ->{} = syntax in log of revision 302923 > of trunk : > "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , > which seems to have been never an officially supported syntax and h

Re: [PHP-DEV] ->{} = syntax ?

2010-09-10 Thread Frederic Hardy
Hello ! I have seen this comment about ->{} = syntax in log of revision 302923 of trunk : "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems to have been never an officially supported syntax and have never been a valid property name, is no longer allowed and PHP ba

Re: [PHP-DEV] ->{} = syntax ?

2010-09-10 Thread Ferenc Kovacs
2010/9/10 Frederic Hardy > Hello ! > >> I have seen this comment about ->{} = syntax in log of revision 302923 >> >>> of trunk : >>> "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , >>> which seems to have been never an officially supported syntax and have >>> never been a va

Re: [PHP-DEV] Re: PHP Annotations RFC + Patch

2010-09-10 Thread Pierrick Charron
> > [Validation(Email(checkMX=>true))] looks better. > > Thanks. Dmitry. > Hi Dmitry The initial syntax proposed in the RFC/Patch is inspired by C#. If you modify this syntax to remove brackets in nested annotations you will have some conflicts like this one : [Validation(Email)] In this case t

Re: [PHP-DEV] Re: PHP Annotations RFC + Patch

2010-09-10 Thread Stas Malyshev
Hi! [Validation(Email(checkMX=>true))] looks better. Even here it's not clear what is happening. What is "Validation", what is "Email", what is "checkMX" (are they all classes? or only some of them?), what is happening to them (are these classes being instantiated? when? what is passed as p

Re: [PHP-DEV] Re: PHP Annotations RFC + Patch

2010-09-10 Thread Pierrick Charron
Hi Stas, Annotations is a new concept in PHP (even if some framework already use an user space implementation of them) and I think it is normal that people will have to read a little bit about this eventually new feature before using it. This is the same thing for traits, if you don't know what is