4 ms·
Would a coffeescript-like language that generates php be something of interest to people? Improving the syntax whilst maintaining the ability to just drop onto
by andrewnez 15y ago
Would a coffeescript-like language that generates php be something of interest to people? Improving the syntax whilst maintaining the ability to just drop onto an apache server.
- mgkimsal 15y agoProbably to some people, sure. For totally 100% from scratch projects, it might be nice - may be harder to deal with existing code bases that you want to extend or integrate with, no?
- glassx 15y agoWell, I believe it would work seamlessly if it's just a code-translator like coffescript.
- glassx 15y agoIt would be really cool. In fact, I was thinking about that right now. Just convert and bingo, instantly deployable on 100% of php hosts. For local development, a script with --watch a la sass, or maybe a single index.php for converting things on the fly...
- bgarbiak 15y agoYes, that would be something huge (or maybe I'm thinking that because I have this idea for a long time and really wish someone would do this). Obviously, the quality of the output php code would matter a lot. Actually, by quality I mean mostly the performance.
- martin_rusev 15y agoI've started something like that a year ago. It's called purplescript( https://github.com/martinrusev/purplescript https://github.com/martinrusev/purplescript ) and it's a ruby like language written in Python ( with PLY ) and it compiles directly to PHP, so there is no need to rewrite PHP functions - they just work.
- gburt 15y agoThat would be incredible.
- pbreit 15y agoThat seems like a much better approach since it would take advantage of PHP's massive advantage in deployment ease.
- wazoox 15y agoDoesn't Haxe exactly match your proposition? With some added benefits?