Re:Early exit is a tail call optimization of procedural lang...
by AlisdairO on Monday December 14, 2015 @11:09AM
(#10731811)
Completely agreed.
I think early returns deep in the logic of a method can be problematic, but I think early returns at the top of a method before you get to the meat of the logic are very readable.
I think early returns deep in the logic of a method can be problematic, but I think early returns at the top of a method before you get to the meat of the logic are very readable.