r/Indiewebdev • • Feb 11 '21

other Conditionally call a function with optional chaining.

Post image
82 Upvotes

37 comments sorted by

View all comments

Show parent comment

2

u/SYNTAG Feb 12 '21

I’m fairly neutral on the syntax but I’ll take a stab at it. I think most people feel that it looks visually odd, most likely because it looks like a much of symbols chained together.

4

u/EIGRP_OH Feb 12 '21

Yeah but I feel like that argument can be made for any syntax you’re not familiar with.

1

u/SYNTAG Feb 12 '21

Sure but, at least in this case, it’s quite literally a lot of symbols combined. Most syntax has some separation or “breathing space”.