in reply to Making perl's map and grep more large list friendly
While perl is correctly lazy in it's evaluation of a ranage
It's not. There's one special case though, and that's if the list of a for is just a range. This optimization was introduced in 5.005.
The question is why is perl still the way it is?Because you haven't written a patch for it yet.
That's generally the way how Perl has been evolved for the last decade, or even longer. There isn't a commission that sits down and says "hmmm, what nice things for our users shall we do for this release?". Instead, people find things bothersome. Or find features lacking. If it itches them enough, they write a patch.
So, let's bounce back the question. Why haven't you written a patch to optimize this yet? Then you have the answer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Making perl's map and grep more large list friendly
by nudge (Acolyte) on Jun 20, 2010 at 22:49 UTC | |
by ikegami (Patriarch) on Jun 20, 2010 at 22:59 UTC | |
by JavaFan (Canon) on Jun 21, 2010 at 02:27 UTC | |
by BrowserUk (Patriarch) on Jun 21, 2010 at 02:29 UTC |