Re:Why Swift Guard Should Be Avoided
by rimantas on Saturday January 02, 2016 @06:21AM
(#10825865)
Yes. And if all your code is composed of three-lines methods, then ok. Otherwise guard is extremely usefull, because unlike 'if' it leaves your constant/variable accessible outside the guard scope.
[ Parent
| on HN ]
There are no comments on this comment yet.