Hacker GitHub

← All repos

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

Mentions per year 19 mentions · busiest year 2018 (7)
20082026
  1. 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…
  2. …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
  3. …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
  4. 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]
  5. …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
  6. ▲ 1
    JavaScript Optional Chaining proposal just moved to Stage 3
    story by maxcan · 2019-07-26 · 0 comments
  7. 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…
  8. …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
  9. 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…
  10. …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
  11. …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
  12. There is a proposal out for it: https://github.com/tc39/proposal-optional-chaining
  13. …a TC39 Stage 1 proposal! [0] https://www.npmjs.com/package/babel-plugin-transform-optiona... [1] https://github.com/tc39/proposal-optional-chaining
  14. …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
  15. …[0]: https://github.com/facebookincubator/idx [1]: https://github.com/dralletje/idx.macro [2]: https://github.com/tc39/proposal-optional-chaining
  16. ▲ 1
    Optional Chaining for JavaScript
    story by Androider · 2017-10-14 · 0 comments
  17. …(it's not just null propagation, it's an Existence Operator). It's called "optional chaining" https://github.com/tc39/proposal-optional-chaining
  18. 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
  19. 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