3 ms·
> Why are inbuilt globals allowed to be modified? Because that was the original behavior, and you can't just change that behaviour, or half of the web will bre
by troupo 2y ago
> Why are inbuilt globals allowed to be modified?
Because that was the original behavior, and you can't just change that behaviour, or half of the web will break (including that 3rd party lib and every web site depending on it)
> Why can't we have basic types? ... Shouldn't Result and Maybe types
Neither Result nor Error are basic types. They are complex types with specific semantics that the entire language needs to be aware of.
- mirekrusin 2y agoThey could use new directive though, ie: "use awesomeness";
- troupo 2y agofrom future import awesomness
- prmph 2y agoSo clean the language up, call it a slightly different name if you want, and let those who want to go modern do so. For those who can't, offer maintenance but no major new features for the original version. Being wedded to mistakes made in the past for fear of breaking current usage is the root of all programming language evil.
- troupo 2y ago> For those who can't, offer maintenance but no major new features for the original version. How do you imagine doing that? > Being wedded to mistakes made in the past for fear of breaking current usage is the root of all programming language evil. Ah yes, let's break large swaths of the web because progress or something