in reply to Re^10: Short-circuiting a map list. (This works! But ...)
in thread Short-circuiting a map list.
Geez! How many hints do you need?
The "If the last statement is a loop control structure..." restriction comes from here:
It is only applied to the "last statement of a subroutine". Not to the last statement of a do block?
For counterpoint, not a millions lines away from where that quote comes from, there is another, rather more applicable quote:
The return value of any block, including those used in subroutines, is taken as the value of the last evaluated expression.
And I'm pretty damn confident that I could find numerous examples of you using, and recommending the use, of the return value from a block.
Does this look familiar:
eval { ...; 1; } or ...;
But suddenly, you read a bit of the documentation, apply it to the wrong circumstance, assume that your misinterpretation is the only interpretation.
I seem to recall that someone fairly authoritative suggested that when the documentation is inadequate or in conflict -- as with those two quotes -- the reference specification is the implementation.
So, jump up and down all you like, you're still drawing the wrong conclusion, and I'm bored with watching you do so. So just stop.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: Short-circuiting a map list. (This works! But ...)
by ikegami (Patriarch) on Oct 10, 2011 at 01:43 UTC | |
by BrowserUk (Patriarch) on Oct 10, 2011 at 02:09 UTC | |
by ikegami (Patriarch) on Oct 10, 2011 at 02:55 UTC | |
by BrowserUk (Patriarch) on Oct 10, 2011 at 03:34 UTC |