[PHP-DEV] Modify language grammar to allow trailing commas in function/method calls

2008-07-21 Thread Evan Priestley
5 and ran the tests, as well as verifying that the build could parse and execute code which used trailing commas in calls. So, what's the feeling on this? We're trying to weigh the merits of rolling it into our stack at Facebook, but we'd feel a lot more comfortable if it

Re: [PHP-DEV] "Pushing PHP Into The Web 2.0 Generation"

2006-04-18 Thread Evan Priestley
I'm not sure if this whole thing is supposed to be tongue-in-cheek or not, but "making the language more human" seems, to me, to be a fairly weak argument for making numeric and string literals like `5' and `"smile"' into objects, adding closures, and altering array syntax. The given exampl

Re: [PHP-DEV] 'odd' handling of $moo['bar'] where $moo is a string

2006-02-09 Thread Evan Priestley
When indexing a string, the string is cast to an integer: (int)'file' == 0 When in a conditional expression, the string is cast to a boolean: (bool)'file' == true It isn't necessarily a fatal error, consider: $keys[ '3' ] - Evan On Feb 9, 2006, at 4:54 PM, Ian P. Chris