5 ms·
As something of a glorified preprocessor, there is a limit to how much it can "make the language better". However, they will probably be able to get a bit of ha
by ezyang 15y ago
As something of a glorified preprocessor, there is a limit to how much it can "make the language better". However, they will probably be able to get a bit of hacker mileage out of code generation, and I can see how you could add features which would be handy (such as first-class anonymous functions; though good luck making that look like "idiomatic PHP code"). It is too bad, however, that they didn't decide to make HTML tags first-class entities in the language; although, of course, this is all vaporware at this point.
Anyone who is interested in new languages specifically designed for web programming should also check out: http://www.impredicative.com/ur/ http://www.impredicative.com/ur/
- ars 15y agoPHP has native first class anonymous functions now, so there is no reason snow can't do a good job converting them.
- mcantelon 15y ago>I can see how you could add features which would be handy (such as first-class anonymous functions; though good luck making that look like "idiomatic PHP code") PHP added anonymous functions in 5.3. http://php.net/manual/en/functions.anonymous.php http://php.net/manual/en/functions.anonymous.php
- wingspan 15y agoThanks for the Ur link. But seriously, 2 clicks to get to a page (docs > tutorial intro) just to see a code sample?