Comments (2)
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.
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 Object
s, not Map
s.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from findhelp.