Miguel de Icaza on Nostr: I use this idiom extensively in Swift with Godot. I used to do one guard for each ...
I use this idiom extensively in Swift with Godot.
I used to do one guard for each condition, until I discovered I could compound those all in one go with the comma operator.
In this particular case, I am dealing with converting weakly typed data into strongly typed data:
https://mastodon.social/@Migueldeicaza/112900465963859780
I used to do one guard for each condition, until I discovered I could compound those all in one go with the comma operator.
In this particular case, I am dealing with converting weakly typed data into strongly typed data:
https://mastodon.social/@Migueldeicaza/112900465963859780