News for hackers. Stuff that matters.
Re:Ask HN: If there was a CoffeeScript for PHP, what feature... by kaolinite on Tuesday March 13, 2012 @12:09PM (#3699031)
Not really needed now that PHP 5.4 has it by default (though in reality it'll be a while before 5.4 is default), but I'd use it if it let me do the following:

$foo = MyFunction()[2];

It's the one feature in PHP 5.4 that made me genuinely happy.

Another thing I'd love is a doctype of sorts for PHP. So I could go:

<?php uses "5.1.2"; ....

and then the PHP engine will treat itself as if it is PHP 5.1.2 or whatever. Yeah, not going to happen ever, but it'd be nice.

There are no comments on this comment yet.