Comment by cosmic_cheese
10 hours ago
The absence of guard in Kotlin is one of those things that regularly trips me up when bouncing between it and Swift. Rather than Swift losing guard I’d prefer if Kotlin gained it.
10 hours ago
The absence of guard in Kotlin is one of those things that regularly trips me up when bouncing between it and Swift. Rather than Swift losing guard I’d prefer if Kotlin gained it.
I think the ?: operator ends up being a decent alternative, e.g.
Unless there's a use case for guard I'm not thinking of