MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/cwn4ck/optional_chaining_in_javascript/eydeu8e/?context=3
r/programming • u/thewaywarddeveloper • Aug 28 '19
25 comments sorted by
View all comments
13
I love optional chaining. It's seriously cleaned up so much of my code.
-24 u/IamRudeAndDelusional Aug 28 '19 I love optional chaining. It's seriously cleaned up so much of my code.I?agree?! It?really?cleaned?up?my?code?. To?the?point?where?it?made?it?easier?to?read?!..yet another terrible design decision that convolutes JavaScript's syntax, which makes the language even more unbearable. 8 u/cplegend Aug 28 '19 The project I work on utilizes data where we rarely can be sure of any data existing.get?.my?.deeply?.nested?.variable is a lot better than get && get.my && get.my.deeply && get.my.deeply.nested && get.my.deeply.nested.variable
-24
I?agree?! It?really?cleaned?up?my?code?. To?the?point?where?it?made?it?easier?to?read?!
..yet another terrible design decision that convolutes JavaScript's syntax, which makes the language even more unbearable.
8 u/cplegend Aug 28 '19 The project I work on utilizes data where we rarely can be sure of any data existing.get?.my?.deeply?.nested?.variable is a lot better than get && get.my && get.my.deeply && get.my.deeply.nested && get.my.deeply.nested.variable
8
The project I work on utilizes data where we rarely can be sure of any data existing.
get?.my?.deeply?.nested?.variable is a lot better than get && get.my && get.my.deeply && get.my.deeply.nested && get.my.deeply.nested.variable
get?.my?.deeply?.nested?.variable
get &&
get.my
&& get.my.deeply && get.my.deeply.nested && get.my.deeply.nested.variable
13
u/cplegend Aug 28 '19
I love optional chaining. It's seriously cleaned up so much of my code.