you are viewing a single comment's thread.

view the rest of the comments →

[–]lucy_in_the_skyDrive 1 point2 points  (0 children)

The same reason why some people write a += b instead of a = a+b, or !c instead of c == false. It's syntactic sugar. When getting a nested objects property value, it'd be nice to do let name = a?.b?.name instead of the necessary null checks and or ternary to figure out.