7 ms·
Maybe we could use something more readable? What about: if posts.comments??.likes?? or if posts..comments..likes instead of if posts.?comments.
by colinyoung 11y ago
Maybe we could use something more readable? What about:
if posts.comments??.likes??
or
if posts..comments..likes
instead of
if posts.?comments.?likes
That would mirror the usage of ?? as the nil-coalescing operator in Swift.