Git Product home page Git Product logo

es-extensible-collection-literal's People

Contributors

alexweej avatar

Watchers

 avatar  avatar  avatar  avatar

es-extensible-collection-literal's Issues

No accounting for objects as Map keys

Using an object as a key in a Map is common—it's certainly one of the most valuable use cases of a Map, but this proposal mentions nothing about that.

So does this:

const key = {};
const map = new Map([ [key, 1] ]);

Mean the same as:

const key = {};
const map = Map#{
  key: 1
};

Consistency with object literals

I think the syntax is very confusing if the LHS of a key/value pairing is an identifier - I'd suggest tweaking it so that it matches object literal syntax: it's a string, unless it's inside brackets, where it's computed just like in object literals and class.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.