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.
Swift if and switch can now be expressions
https://www.avanderlee.com/swift/if-switch-expressions/
0 Comments
No comments yet.