Module import/export bindings

Allen Wirfs-Brock allen at
Mon Mar 16 16:32:31 UTC 2015

On Mar 16, 2015, at 9:26 AM, Mark Miller wrote:

> Story is way too simple. JS const means constant, unchanging. By contrast, import bindings, like const in C++, means "read-only view". This is *very* different from constant.
> Don't use the "const" analogy when changes are still observable.

got me...not enough morning coffee yet...

Yes, they are like `const` in that they can't be assigned to.  They are unlike `const` in that in some cases their observable values may change.


More information about the es-discuss mailing list