Anyone working on a named parameter proposal for JavaScript? I'm tired of having to [ab]use object literals for that purpose.
-
-
Replying to @sindresorhus3 replies 0 retweets 0 likes
-
i can’t possibly see how that could work - object literals are probably the pattern that makes most sense
1 reply 0 retweets 4 likes -
Why not? Maybe I'm missing something big here.
2 replies 0 retweets 0 likes -
if you can write up a doc showing back compat, i’d love to read it
1 reply 0 retweets 0 likes -
The syntax was just an example. Could maybe go with x(foo: 'bar', y: 1) which currently is a syntax error.
3 replies 0 retweets 1 like
Replying to @sindresorhus
Go for it! See stage 0 and stage 1 in https://tc39.github.io/process-document/ … — that’s all you need to get the ball rolling
12:42 AM - 7 Feb 2017
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.