On Sun, Jun 27, 2010 at 01:41:31PM -0400, Shawn H Corey wrote: > On 10-06-27 01:08 PM, marcos rebelo wrote: >> Hi all >> >> This time, it's much more a personal opinion than a recipe. >> >> http://sites.google.com/site/oleberperlrecipes/recipes/01-variables/04---misc/01-when-shall-we-use-default-variables >> >> Opinions are always welcome in perl-reci...@googlegroups.com >> >> Best Regards >> Marcos Rebelo >> > > An opinion I have held all along: Things that behave differently should > look different. That means *always* put the array in the shift.
Here's another opinion, for balance. When you explicitly write something that's implicit you make me stop and wonder why you have done so. What have I missed in reading your code that requires you to write something that otherwise wouldn't be there? Why have you felt the need to unduly clutter your code with extraneous punctuation? The additional text acts as a warning to tell me that all here it not as it seems. Your code may be correct, but it is not idiomatic. You may be attempting to increase clarity but you are, in fact, impairing comprehension. As I said, it's another opinion. There is a reason why Perl has defaults. "Any language that doesn't occasionally surprise the novice will pay for it by continually surprising the expert." -- Larry Wall http://www.nntp.perl.org/group/perl.perl6.language/2002/11/msg12621.html -- Paul Johnson - p...@pjcj.net http://www.pjcj.net -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/