What does runtime have to do with that? C++ for example has also several compilers but they all behave the same, according by the ISO standard, therefore even if there is new compiler it has to be compliant. JS just did a poor decisions regarding the specifications, if they said that implicit casts can not happen then the runtime would just not implement it🤷♂️
It's not about making the right decision. It's all about making the web consistent. If we prioritize right decision above all, then we'll need to rewrite all project every single time. Which can happen faster than you can deliver a working feature. It would not be fun for everyone if you deployed a web app then all of a sudden, it would not work as intended because the user upgraded its browser.
You'll never make the right decision from the beginning. Especially for something unique. Unless you have a time machine to look for the future. It's up to the present to fix it
Yeah then why only JS works on the web? Any other language can try but they won't survive the open web long (java applet/flash/webassembly). Only JS survives this long because it's not all about being right. it's about being consistent.
View all comments
Show parent comment
1
u/Quito246 Mar 21 '24
What does runtime have to do with that? C++ for example has also several compilers but they all behave the same, according by the ISO standard, therefore even if there is new compiler it has to be compliant. JS just did a poor decisions regarding the specifications, if they said that implicit casts can not happen then the runtime would just not implement it🤷♂️