michalwadas at gmail.com
Tue Nov 8 08:13:56 UTC 2016
Actually it isn't useless - limiting variable reassignment significantly
increase code readability.
Immutability is different use case and it's actually impossible to get
immutability when we consider exotic objects and getters/setters.
On 8 Nov 2016 6:30 a.m., "jeremy nagel" <jeremymnagel at gmail.com> wrote:
> was just chatting to colleagues about the utility of *const*. The fact
> that it doesn't actually lead to immutable objects or arrays seems to make
> it a bit toothless and misleading. Are there any proposals to have an
> immutable version of const? I know you could use ImmutableJS but it would
> be nice to have this part of the language.
> Perhaps the keyword could be *final*.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss