3 ms·
<result> if/unless <condition> is pretty common in natural language for good reason. I find it far more readable than prefix, block-form if for the simple case
by dragonwriter 7y ago
<result> if/unless <condition> is pretty common in natural language for good reason. I find it far more readable than prefix, block-form if for the simple case of one-line results with no alternative branch.,
- matthewmacleod 7y agoAgreed. Particularly useful for for constructs like: def do_stuff() return unless stuff_enabled? ... end