in reply to syntactic sugar, hemlock, and other such fun
The problem with prototypes is that the implicit sub thing only works for the first argument. So if you wanted to write:
but I don't think that's nice. How about a few more "keywords" in your syntax?step { code_goes_here; } "stepname";
You can use a function with a prototype to make sub into any other word you want. You can use overloading to change the comma to something else.step "stepname", sub { code_goes_here; }
Interesting problem.
—John
|
|---|