Hacker News new | ask | show | jobs
by O-stevns 1240 days ago
Adding to this excellent explanation, the guard is compile time checked too, so you can't accidentally screw up the early return like one could in say c or c++

It might seem like a quality of life feature to some, to me however it's an essential feature of swift and one of the better ones.