Re: [heycam/webidl] Constant sequence value (#318)

FrozenArray is for representing immutable things.  That's not the same thing as a constant, which is a property whose value is always `===` to whatever you got last time (but could in theory be a mutable object).

It's the difference between:

    var x = {};
    Object.freeze(x);  // immutable thing, but x can be changed to point to something else

and

    const x = {}; // Mutable thing, but x always points to this one object.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/318#issuecomment-313997464

Received on Monday, 10 July 2017 04:13:12 UTC