> I agree 100% percent with the observations, but not with the solution.
> 
> Shouldn’t this be done the other way around, by introducing a new way of 
> accessing map elements? For example:
>     map@[key]
>     map.[key]
> 
> Then we can continue to use . and [] to access properties and use @[] to 
> access data structure elements. I wouldn’t like the asymmetry introduced by 
> using [] for the latter task.


One more thought: Currently, [] perpetrates the illusion of objects being maps 
when it is actually closer to a meta-programming mechanism. Not continuing in 
that direction seems conceptually cleaner to me (even if the syntax will baffle 
people coming from other programming languages).

-- 
Dr. Axel Rauschmayer

[email protected]
twitter.com/rauschma

home: rauschma.de
blog: 2ality.com



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to