5 ms·
Guard clauses are great, and when used appropriately clean things up. This is pretty much my only use of the pattern. (Ending boolean-returning methods with a
by cycomachead 4y ago
Guard clauses are great, and when used appropriately clean things up.
This is pretty much my only use of the pattern.
(Ending boolean-returning methods with a ? is also a great convention in ruby.)