4 ms·
Doesn't encourage immutability because variables are not readonly by default. I would advice the language designers to require the "mutable" keyword for variabl
by knocte 8y ago
Doesn't encourage immutability because variables are not readonly by default. I would advice the language designers to require the "mutable" keyword for variables than can be re-assigned. (Similar to F# approach.)
- tom_mellior 8y agoI think you're mistaken. It seems to me that you need to create an explicit "box" (a reference) to make things mutable.
- pjmlp 8y agoML approach.