4 ms·
PHP and C inspired don't sound like selling points to me. Quite the opposite factually
by dtx1 5y ago
PHP and C inspired don't sound like selling points to me. Quite the opposite factually
- ArtemZ 5y ago
- tonyedgecombe 5y agoI'd love to see a modern equivalent to PHP. Something for all those quick and dirty web jobs but without the language deficiencies of PHP.
- dtx1 5y agoThat's really the thing with PHP isn't it? Getting something done as Quick and Dirty as with PHP is not easy to do with any other language when it comes to "the web"
- tored 5y agoOne possibility is to make a language that compiles to PHP, like what TypeScript is for JavaScript, but not necessarily superset. PHP already has a ton of well tested infrastructure to interact with web servers so you don't want to reimplement that again. And by compiling to PHP you get the same request model that PHP has which works great for quick and dirty web jobs. You can also leverage the performance improvements of PHP. If you could hook that up to apache with a handler it would be great compile to PHP language file extension -> Apache handler -> compile it to PHP -> Apache handler -> PHP Apache SAPI
- ss108 5y agoIs Python not sufficient for that? I am unfamiliar with PHP, wondering what benefits it has that might lead someone to choose it for a task today.
- jrwr 5y agoThe biggest feature of PHP for new people to the language is in-lining You can do stupid stuff like <table> <?php foreach($array as $row){ ?> <tr><td><?php echo $row[0];?></td></tr> <?php } ?> Meaning you can just inlay PHP in your raw HTML as you please, this example will reprint the <tr> and <td> for every key in $array
- dotancohen 5y agoYou'll love PHP 8.
- tonyedgecombe 5y agoNot if it's backwards compatible.
- Supermancho 5y agoWho thinks what feature was inspired from what language is irrelevant. A language that tries to advance the state of programming is the only selling point worth noting. This is a toy language, which means it either adds to the noise or will disappear.