coderrr
5/2/2008 5:34:00 PM
[Note: parts of this message were removed to make it a legal post.]
> IMHO a C-style single-line if statement is more trouble than it's worth.
> It makes me cringe every time I see such a thing in C/C++/Java code (I
> always put braces around my code blocks, just like Perl requires).
I don't care to use the single line if as we already have that (just in
reverse order). I want a double line if, which has never made me cringe,
although of course this is subjective.
> Besides, who needs a C-style if when we have shell-style boolean
> expressions?
>
> # example 1
> true and
> p :true
>
> p :im_outside_of_if
>
Awesome, I've learned something new. I never though about a newline after
an &&. I'll give this a try and see how it feels. Although from the looks
of it, a two-line if would read better.