Your implying that last (which doesn't look odd) couldn't be used because next is possible.So, then the rule would be "when using when, there is an implied last when used inside a given, but there's an implied next when used inside a for"?
Not sure if that's an improvement.
consequently full orthogonality would imply allowing multiple args in given(LIST)Uhm, do realize that given(EXPR) evaluates EXPR in scalar context, while for(EXPR) evaluates in EXPR in list context. As such, given(LIST) isn't meaningful. Changing the context means that you break given(@ARRAY).
If you want given to behave exactly as for, write for. I rather have given to be different from for, then given to be another alias for for/foreach.
In reply to Re^7: "when" and replacements
by JavaFan
in thread "when" and replacements
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |