in reply to Re: Perl oddities
in thread Perl oddities
Another alternative:
1. I've found that the braceless if can slow me down when reading C code. I have to remember that the next command is the thing that's done.
2. Cuddling the braces around their control statements saves a lot of whitespace without much loss of readability. Consider the following extension of my suggestion above:
A couple of things:if ($condition) { do_something(); }
1. I've found that the braceless if can slow me down when reading C code. I have to remember that the next command is the thing that's done.
2. Cuddling the braces around their control statements saves a lot of whitespace without much loss of readability. Consider the following extension of my suggestion above:
Just my $0.02if ($condition) { do_something(); } else { if ($another_condition) { do_something_else(); } else { do_yet_a_third_thing(); } }
----
My mission: To boldy split infinitives that have never been split before!
My mission: To boldy split infinitives that have never been split before!
|
---|
In Section
Meditations