4 ms·
Make me wonder... Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the ta
by noneucat 8y ago
Make me wonder...
Is there anything like TypeScript or MoonScript for PHP? A source-to-source language that tries to mitigate the quirks and issues with the target language.
- k_sze 8y agoJust pick a better language (e.g. Python/Ruby/Groovy/C#). Period. And JavaScript was never as horrible as PHP anyway, in my opinion. The thing is, you have more control over what language you can run on the server-side, whereas all your web browser clients run JavaScript. So it made sense to have a transpiler targeting JavaScript.
- noneucat 8y agoI wasn't trying to credit the language. Just curious about the state of the ecosystem. I had the displeasure of PHP being the first "programming language" I came across. Most of my knowledge was gleaned from w3schools and various web pages scattered around the web. I recall doing a lot of Googling while trying to figure out edge cases and such.
- vorg 8y agoBut mostly the language picked for a system is a well-used legacy language (e.g. Java / C / Befunge / Cobol ) chosen by a business manager.