Immutable const?

jeremy nagel jeremymnagel at gmail.com
Tue Nov 8 05:30:14 UTC 2016


Hi,
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*.

cheers,
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161108/687ab356/attachment.html>


More information about the es-discuss mailing list