You're viewing a single thread.
View all comments
145
comments
If this was cpp, clang-tidy would tell you “do not use else after return”
I don’t know how null works in swift, but assuming it coerces to bool I’d write
if (a) return a; return b;
16 3 ReplyIt's nil, and you can coalesce it with ??
3 0 Reply
You've viewed 145 comments.
Scroll to top