Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



So 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.


> 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


They could use new directive though, ie:

    "use awesomeness";


    from future import awesomness




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: