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
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
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.