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

2008-07-21 Thread Evan Priestley
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 was present upstream. Thanks, Evan Priestley [1] http://java.sun.com/docs/books/jls/second_edition/html/ arrays.doc.html#11358 [2] http://docs.python.org/ref/calls.html

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 examples

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.