Re:Early exit is a tail call optimization of procedural lang...
by cballard on Monday December 14, 2015 @11:26AM
(#10731924)
Swift solves this with "guard" statements, which must return if their condition fails. This is most commonly used in combination with converting optional values to non-optional values, to prevent pyramids of doom.
[ Parent
| on HN ]
There are no comments on this comment yet.