in reply to Your named arguments
I fail to see the confusion. So what if I use $o->{from} instead of $from? That's just sugar that has a slight readability edge, but not enough to make my P5 code more convoluted. It's a micro-optimization. The bigger gains are naming at all, <50 line subs, 78char lines, and the like.sub convert { my ($o) = @_; return if grep { !exists $o->{$_} } qw( from to thing ); ... }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Your named arguments
by eric256 (Parson) on Nov 08, 2005 at 04:23 UTC | |
by dragonchild (Archbishop) on Nov 08, 2005 at 12:58 UTC | |
Re^2: Your named arguments
by tilly (Archbishop) on Nov 08, 2005 at 16:22 UTC | |
by dragonchild (Archbishop) on Nov 08, 2005 at 16:54 UTC |