tc39/proposal-optional-chaining
View on GitHub ↗ ★ 4,903 HTML archived
19 mentions on Hacker News by 19 people: 2 stories, 17 comments · first 2017-06-27 · latest 2022-08-03
20082026
-
For comparison, here are the Javascript RFCs for the equivalent operators: https://github.com/TC39/proposal-optional-chaining https://github.com/tc39/proposal-nullish-coalescing IMO optional chaining is a lifesaver when dealing with deeply…
comment by btown · 2022-08-03 · in PEP 505 – None-aware operators (2015) -
…added to Javascript (and hence browsers) was championed among others by the TypeScript team. [1] https://github.com/tc39/proposal-optional-chaining
comment by Vinnl · 2020-05-13 · in Announcing TypeScript 3.9 -
…through the process very smoothly, but I wouldn't rely on them for anything critical just yet. [1] https://github.com/tc39/proposal-optional-chaining [2] https://github.com/tc39/proposal-nullish-coalescing
comment by rimunroe · 2019-10-02 · in TypeScript 3.7 Beta -
JS went for a?.[b] https://github.com/tc39/proposal-optional-chaining#faq
comment by 11235813213455 · 2019-08-27 · in Dart nullability syntax decision: a?[b] or a?.[b] -
…that would really elevate things. [1] https://github.com/tc39/proposal-pattern-matching [2] https://github.com/tc39/proposal-optional-chaining
comment by halfmatthalfcat · 2019-07-30 · in What’s New in ES2019 -
▲ 1
JavaScript Optional Chaining proposal just moved to Stage 3story by maxcan · 2019-07-26 · 0 comments
-
Yep. Both are stage-1 proposals: https://github.com/tc39/proposal-optional-chaining https://github.com/tc39/proposal-nullish-coalescing Recently started using optional chaining in our codebase (via Babel 7) and it's great so far. Also…
comment by kangax · 2019-01-29 · in Future JavaScript: what is still missing? -
…also a bunch of typesafe getter function utility libraries that are better than nothing [2-3]. [1] https://github.com/tc39/proposal-optional-chaining [2] https://github.com/pimterry/typesafe-get [3] https://github.com/yayoc/optional-chain
comment by vimslayer · 2019-01-23 · in TypeScript Tricks: Type Guards -
This is currently a stage 1 proposal for the core language: https://github.com/tc39/proposal-optional-chaining Depending on your stack it might be possible to make use of it already, e.g. Babel has a transpilation plugin, and Flow supports…
comment by jamesisaac · 2018-06-16 · in Ask HN: Your favorite syntactic sugar from any language? -
…sometimes when I see it used heavily somewhere and almost replay what is happening in my head. [0] https://github.com/tc39/proposal-optional-chaining
comment by Klathmon · 2018-06-13 · in Javascript utility libraries to know in 2018 -
…an experiment to learn more about proxies. This is similar to the TC39 Optional Chaining Proposal https://github.com/TC39/proposal-optional-chaining https://gist.github.com/dakaraphi/6a87168db66fd8f032d2
comment by 13years · 2018-05-18 · in Proxy, a new JavaScript ES6 feature -
There is a proposal out for it: https://github.com/tc39/proposal-optional-chaining
comment by nimos · 2018-04-04 · in Examples of everything new in ECMAScript 2016, 2017, and 2018 -
…a TC39 Stage 1 proposal! [0] https://www.npmjs.com/package/babel-plugin-transform-optiona... [1] https://github.com/tc39/proposal-optional-chaining
comment by ollerac · 2018-03-31 · in Show HN: Nothing.js – A chainable mock object which always returns itself -
…its way into the spec [0], this is the cleanest way I’ve seen to operate on maybe-null values. [0] https://github.com/tc39/proposal-optional-chaining
comment by bcherny · 2018-03-31 · in Show HN: Nothing.js – A chainable mock object which always returns itself -
…[0]: https://github.com/facebookincubator/idx [1]: https://github.com/dralletje/idx.macro [2]: https://github.com/tc39/proposal-optional-chaining
comment by m0meni · 2018-03-31 · in Show HN: Nothing.js – A chainable mock object which always returns itself -
▲ 1
Optional Chaining for JavaScriptstory by Androider · 2017-10-14 · 0 comments
-
…(it's not just null propagation, it's an Existence Operator). It's called "optional chaining" https://github.com/tc39/proposal-optional-chaining
comment by abritinthebay · 2017-07-18 · in Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep -
I agree, it's one of the features we'll miss. There is a Stage 1 Null Propagation proposal: https://github.com/tc39/proposal-optional-chaining
comment by sudowork · 2017-07-18 · in Decaffeinating a Large CoffeeScript Codebase Without Losing Sleep -
It's at Stage 1 https://github.com/tc39/proposal-optional-chaining and babel plugin is coming here https://github.com/babel/babel/pull/5813
comment by esamatti · 2017-06-27 · in TC39, ECMAScript, and the Future of JavaScript