Swift if and switch can now be expressions

https://www.avanderlee.com/swift/if-switch-expressions/

This is one feature that I missed from some other languages like Kotlin. It isn’t super useful for ifs but a switch with a lot of cases? Bring it on.

13 points · 0 comments · view on lemmy.world

0 Comments

No comments yet.