Re:PHP in 2023
by krapp on Tuesday January 17, 2023 @07:15AM
(#34411584)
Javascript already set the precedent. If you don't like the way a language works, it's preferable to have a proxy language that does work the way you want that compiles to it, rather than accept the language for what it is and learn to work with it.
[ Parent
| on HN ]
what do you suggest to achieve this? electron?
just a downvote then. helpful.
Re:PHP in 2023
by iLoveOncall on Tuesday January 17, 2023 @08:55AM
(#34412361)
You missed my point: PHP is adding types to the core language, so instead of developing a superset, contribute to the type system of PHP.
The comparison just isn't relevant.
Javascript can't be compared with PHP, javascript is the only scripting language that all browsers understand except wasm.
And there are multiple interpreters that may work different or have not all features avail.
PHP is used on servers that can run many different languages. Additional there is only one php interpreter that is widely used (yes there was hhvm and some others ), that means you can rely on all features of this version.