Strawman: Decouple [ ] and property access

Axel Rauschmayer axel at rauschma.de
Fri Nov 11 08:56:54 PST 2011


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
axel at rauschma.de

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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20111111/674e68e4/attachment.html>


More information about the es-discuss mailing list