Brendan Thompson on Nostr: TIL about the switch statement with assignment upfront in npub1f6mss…d9g3s latest ...
TIL about the switch statement with assignment upfront in npub1f6mssnwyfwzv4xa96zd3mj7cmj43rm2ckaqqnlj07z2seu87jjcsxd9g3s (npub1f6m…9g3s) latest article. I’m a heavy user of switch statements I feel like the assignment side might help replace rather a few if statements!
https://www.donnywals.com/swifts-if-and-switch-expressions-explained/
#iosdev #iOS
https://www.donnywals.com/swifts-if-and-switch-expressions-explained/
#iosdev #iOS