News for hackers. Stuff that matters.
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.
Re:PHP in 2023 by 867-5309 on Tuesday January 17, 2023 @07:36AM (#34411722)
what do you suggest to achieve this? electron?
Re:PHP in 2023 by 867-5309 on Wednesday January 18, 2023 @06:03AM (#34425394)
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.

Re:PHP in 2023 by 0x073 on Tuesday January 17, 2023 @01:39PM (#34416697)
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.