in reply to is the use of map in a void context deprecated ?
Void map has never been deprecated in the official sense that pseudo-hashes, v-strings, and $* are. Maybe a better word would be derided. The map function produces a copy of the post-map list which is useless in void context and immediately thrown away. Optimizers dislike that, particularly when a for loop can do better.
I seem to recall that map was just rewritten to check for void context and avoid the extra work if possible. That would remove all objections but aesthetic ones, shouts of "Ugly!" which need not be listened to. I'll try to remember where I saw that.
After Compline,
Zaxo
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: is the use of map in a void context deprecated ?
by liz (Monsignor) on Oct 05, 2003 at 18:57 UTC | |
by arno (Scribe) on Oct 05, 2003 at 19:22 UTC | |
by Aristotle (Chancellor) on Oct 05, 2003 at 19:39 UTC |