GithubHelp home page GithubHelp logo

Excessive use of maps about findhelp HOT 2 CLOSED

vtex avatar vtex commented on June 7, 2024
Excessive use of maps

from findhelp.

Comments (2)

guifromrio avatar guifromrio commented on June 7, 2024

The idea for this library is to be fluent and fit the JS paradigm allowing you to compose commands as a simple object tree. That's why I created this in the first place. 😃

By the way, objects are indeed ordered according to the spec, with the exception of "integer indexes": https://tc39.github.io/ecma262/#sec-ordinaryownpropertykeys

And, practically speaking, Node runs on V8, and V8 respects the creation order, so that shouldn't be a problem in the foreseeable future. If they change that, half the internet will 💥.

Regarding ambiguity: there is no such thing. If a node has a handler, it's a command.

So, seeing as this would compromise the core concept of the library, I'd rather that we didn't change this style.

from findhelp.

rdumont avatar rdumont commented on June 7, 2024

Awesome, no problem! I really had no idea that the spec described ordered properties in objects. And, now that you mentioned, they are in fact Objects, not Maps.

About the ambiguity, I'll rephrase, because that's not what I meant. I meant that, for instance, I can't have a namespace with its own handler and a command called description, because that would be mistaken for the own namespace's description. But I guess that is an issue apart from this one.

from findhelp.

Related Issues (6)

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.