in reply to Re: Re: Think for yourself.
in thread is the use of map in a void context deprecated ?
I emphasised one point of your comment however. When i see a map in void context that isnt part of an obfu or some CB whip-it-together, my first thought is "Hmm, what happend to the target of the map?" And then I go looking to see what I dont understand. And then I get annoyed and change it to a for loop so that nobody else wastes time trying to figure out the misleading code.
And that is something I don't understand. What makes map so special? Any function in Perl will return something, be it a buildin or a user defined sub, and even operators return values. Why is it that people get all confused if they see a map in void context, and start looking where the return value goes, but they don't have problems with other functions?
What makes map so special?
Abigail (really, I'd like to know)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Think for yourself.
by demerphq (Chancellor) on Oct 06, 2003 at 23:30 UTC | |
by Abigail-II (Bishop) on Oct 07, 2003 at 09:29 UTC | |
by Aristotle (Chancellor) on Oct 07, 2003 at 22:59 UTC | |
Re: Re: Think for yourself.
by Petruchio (Vicar) on Oct 07, 2003 at 15:07 UTC | |
by Abigail-II (Bishop) on Oct 07, 2003 at 15:24 UTC | |
Re^?: Think for yourself.
by Aristotle (Chancellor) on Oct 06, 2003 at 20:08 UTC |
In Section
Seekers of Perl Wisdom