News for hackers. Stuff that matters.
Re:Underscore.php by michaelchisari on Tuesday August 09, 2011 @01:14PM (#2864801)
While I have your attention, I've long wondered if it's possible to do for PHP what CoffeeScript did for JS. A more aesthetically concise and pleasing syntax that compiles directly to PHP. There's a few projects (PHP-Snow, CoffeeScript for PHP, etc), but they all seemed to have been abandoned.
Re:Underscore.php by bwh2 on Tuesday August 09, 2011 @01:58PM (#2864991)
IMO CoffeeScript exists because we can't really avoid JS for web apps. But avoiding PHP is pretty straightforward - you just use python, ruby, or whatever.
Re:Underscore.php by michaelchisari on Tuesday August 09, 2011 @03:55PM (#2865354)
In theory, yes. In practice, it's not so simple. Most developers using php do so not by choice, whether due to legacy code, or requiring php's ubiquity, or what have you.

You can't use ruby or python to build wordpress plugins, for instance.

Re:Underscore.php by bwh2 on Tuesday August 09, 2011 @05:03PM (#2865589)
Good point. I can see where something like CoffeeScript for PHP would be useful.
Re:Underscore.php by Scriptor on Tuesday August 09, 2011 @02:38PM (#2865123)
It doesn't use CoffeeScript's syntax, but I work on Pharen, which takes a Lisp dialect and compiles it to PHP: http://scriptor.github.com/pharen/
Re:Underscore.php by tlack on Tuesday August 09, 2011 @01:50PM (#2864962)
In the past I've had a rough time parsing PHP (for an rdoc-style project), despite PHP having some built in support for parsing itself: http://php.net/manual/en/function.token-get-all.php

Perhaps if one attempted to pull the parser out of Facebook's Hiphop and use that..

Re:Underscore.php by jawngee on Tuesday August 09, 2011 @02:13PM (#2865036)