[Grace-core] Binding symbol and egality symbol
Michael Kölling
M.Kolling at kent.ac.uk
Fri Nov 12 04:18:29 PST 2010
On 11 Nov 2010, at 02:31, Andrew P. Black wrote:
> IIRC, the argument went something like this. In the semantics, we have names and values, values always being objects. Names are bound to values; both const and var declarations do this. The binding is the same. The distinction is not in the nature of the binding, but whether the name can be re-bound: const names can't be re-=bound, and var names can. We indicated that by using the keywords const and var; it was not only unnecessary, but also wrong, to use a different binding symbol.
I very much agree with this.
Incidentally, I also agree with the choice of "const" as a keyword. When I saw the "let" I immediately wondered why that was chosen. "const" is immediately clear and expressive, "let" requires explanation and interpretation.
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailhost.cecs.pdx.edu/mailman/private/grace-core/attachments/20101112/c9a4026d/attachment.html>
More information about the Grace-core
mailing list