I agree. I've never liked python's do_stuff() if i == 1. It's too disconcerting to parse what's going on and then have to backtrack and think about the condition that came afterwards. I've found the i == 1 && do_stuff() has become really natural after only using it a few times.
-Jacob On Thu, Mar 20, 2014 at 5:13 PM, Ivar Nesje <[email protected]> wrote: > The suffix `if` and `unless` is the reason I never managed to become > literate in Ruby. Maybe it is just a matter of time and experience, but I > read code lines from left to right, and my mental read buffer is not long > enough to see the `if` that someone hid at the end of the line. >
