That the [] decoupling is needed can by seen by the fact that dicts can’t have 
a size() method (as opposed to the dictionary solution in the strawman).

On Nov 11, 2011, at 17:45 , Allen Wirfs-Brock wrote:

> thanks, a good suggestion.
> 
> Actually they are quite different.  The dict proposal is simply defining one 
> new data types that can be used as a key value store which is guaranteed not 
> to have any pre-existing key conflicts prior to initial use.  
> 
> My proposal, defines a general extensible mechanism that  JS programmers can 
> use to define many kinds of new collection abstractions all of which use a 
> consistent accessing syntax whose semantics is completely under the control 
> of the programmer. 
> 
>> A comparison to 'dict' which shares the expressed goals of the above
>> proposal would be a great addition. Roughly speaking it appears to be
>> "more ambitious than", meaning more effort and more power.

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com



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

Reply via email to