5 ms·
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++
by O-stevns 4y 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.