in reply to RFC: Perl Second-Best Practices
In certain circumstances I like very short variable names. For example in a loop where the variable is used many times as the topic, and I want the eye to be drawn to the methods. To me:
for my $e ( @episodes ) { $e->method_one; $e->method_two; $e->method_three; }
is clearer than:
for my $episode ( @episodes ) { $episode->method_one; $episode->method_two; $episode->method_three; }
However my coworkers don't seem to like it, so I'm going to try and change.
update: s/@episode/@episodes/ in second example.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: RFC: Perl Second-Best Practices
by duff (Parson) on Dec 19, 2005 at 21:48 UTC | |
Re^2: RFC: Perl Second-Best Practices
by Aristotle (Chancellor) on Dec 26, 2005 at 12:16 UTC |