MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/7ytegt/optional_chaining_may_be_coming_to_javascript/dulbnof/?context=3
r/javascript • u/gregbaugues • Feb 20 '18
100 comments sorted by
View all comments
Show parent comments
11
Plus we use Babel in our workflow where I work so I guess I can use this right now!
But if syntax changes or it even never makes it to the standard as well, you will have to update your codebase.
1 u/[deleted] Feb 20 '18 Pretty sure this one will stick:solves a common pain pointmakes sense in both OO and functional contextssimilar syntax is present in multiple languagestranspiration produces very little ES5, so it is likely that the engine makers won't have too hard a job to implement it. 2 u/vinnl Feb 21 '18 Those are all very good points in favour of adopting it now - very helpful for people wanting to weigh their options to see whether it's worth it to them.(Apart from you probably meaning to refer to transpilation :P) 1 u/[deleted] Feb 21 '18 Autocorrect never fails to amuse :)
1
Pretty sure this one will stick:
solves a common pain point
makes sense in both OO and functional contexts
similar syntax is present in multiple languages
transpiration produces very little ES5, so it is likely that the engine makers won't have too hard a job to implement it.
2 u/vinnl Feb 21 '18 Those are all very good points in favour of adopting it now - very helpful for people wanting to weigh their options to see whether it's worth it to them.(Apart from you probably meaning to refer to transpilation :P) 1 u/[deleted] Feb 21 '18 Autocorrect never fails to amuse :)
2
Those are all very good points in favour of adopting it now - very helpful for people wanting to weigh their options to see whether it's worth it to them.
(Apart from you probably meaning to refer to transpilation :P)
1 u/[deleted] Feb 21 '18 Autocorrect never fails to amuse :)
Autocorrect never fails to amuse :)
11
u/vinnl Feb 20 '18
But if syntax changes or it even never makes it to the standard as well, you will have to update your codebase.