Swift if and switch can now be 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.
https://www.avanderlee.com/swift/if-switch-expressions/Open linkView original on programming.dev13
Comments