3 ms·
It's a code safety thing. If you create it and the compiler makes it immutable, then you can't screw it up later with an accidental mutation. Basically, someth
by falcolas 9y ago
It's a code safety thing. If you create it and the compiler makes it immutable, then you can't screw it up later with an accidental mutation.
Basically, something that takes coder discipline in Ruby/JS/Go is handled a compiler/runtime enforced restriction.
- oelmekki 9y agoOh, I see, thanks. I get now how it can be a problem when you're used to rely on it and it's not in the language.