621
know the features of your language
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
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
It's nil, and you can coalesce it with ??