News for hackers. Stuff that matters.
Re:Objective-S: architecture-oriented language based on Smal... by zapzupnz on Sunday August 14, 2022 @06:23AM (#32458087)
I don't think they quite address the same thing. `guard` isn't just an `if` statement that looks for the negative of a Boolean; it also forces handing control flow out of scope in a consistent way — you cannot write a `guard` statement without also deciding how you'll exit the scope if the Boolean is false.

The developer not being made to do so, and just embedding conditions within conditions, is how the pyramids of doom are constructed to begin with.

There are no comments on this comment yet.