Designing a MultiMap (in DOM, would like to be consistent with ES)

Brandon Benvie brandon at brandonbenvie.com
Mon Dec 3 10:08:00 PST 2012


Correct me if this stuff isn't actually going to end up as ES6, but my
reading of meeting notes from July? indicate this is in:

Instead of

  import {Name} from '@name';
  const keysName = new Name;  // These should be non global.
  const valsName = new Name;
  class MultiMap { ... }

You can do

  class MultiMap {
    private @keys, @vals;
    ....
  }

And change anything like "this[keysName]" to "this. at keys"

Also "iterator" will be a public symbol (or whatever "public" ends up being
named) that can be imported from '@iter'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121203/cf010e06/attachment-0001.html>


More information about the es-discuss mailing list