if(!foo) { maybeDoSomething(); return; } bar();
The unless statement makes the early exit seem like the default action rather than the exceptional action it (hopefully) is.
The unless statement makes the early exit seem like the default action rather than the exceptional action it (hopefully) is.