Hacker News new | ask | show | jobs
by backslash_16 1049 days ago
I would love separate variable initialization vs assignment. I know that ship has sailed.

It's interesting, I never cared about that until I did "Crafting Interpreters" and realized how separating those two actions helps clarify scopes.

Being realistic I know it's too large of a breaking change and will never land in the language but I can dream right?

2 comments

  s/separating/not stupidly conflating/
In computer science, binding a variable and assignment are not only separated, but by an ideological chasm.
I don't see it being such a bad thing, it ensures variables always have a defined value.