make sub {...} have the same form as map {...} and grep {...}.
I didn't say that; I said that prototyping allows Iterator to behave like map { ... } and grep { ... }. And I agree, it also allows Iterator to behave like sub { ... }.
Meanwhile, curious about the origination of "syntactic sugar", I found this quote:
Syntactic sugar causes cancer of the semicolon;And a hundred other goodies at http://www.cs.yale.edu/quotes.html.
In reply to Re^7: "a bit of sugar "(HOP)
by hbm
in thread "a bit of sugar "(HOP)
by Wiggins
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |