News for hackers. Stuff that matters.
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.

    guard let something = maybeSomething else { return ... }

There are no comments on this comment yet.