Rod Adams wrote:
It used to be
fooArray,Int
fooHash,Int
And has become
foo:(Array,Int)
foo:(Hash,Int)
The return type arrow -- inside the :() type spec is not
yet approved by @Larry.
In my mind, the more interesting question is what does foo without the
specifiers return when
Rod Adams wrote:
It used to be
fooArray,Int
fooHash,Int
but I seem to recall that there was a mild change that occurred. Or
maybe I'm thinking about the adding of the colon for operators. I'm not
certain, but it's something very close to the above.
Well, it doesn't seem ambiguous to
Say I have:
multi sub foo(Array $a,Int $b) {...}
multi sub foo(Hash %a, Int $b) {...}
and I want to (distinctly) wrap each multisub, say for testing, or AOP,
or whatever. How do I get the two different code references? As far as i
can gather from the Apocalipses and Synopses, there should be a
With a meta model for code signatures you could generate a code
signature and then ask it to locate any matching multis.
For a more concrete handle on how this might look if I were king-
wait a while... ;-)
When I have more time to finalize docs/mmd.kwid and then describe
the meta model for