On Wed, May 26, 2010 at 00:53, Moritz Lenz <mor...@faui2k3.org> wrote:
> The spec doesn't elaborate on how the short args are specified in the
> signature of MAIN. I see two possible approaches (that don't contradict):
> 1) one renames them in the signature, so it would like
> sub MAIN(:name(:$n))
> then $n has two names, 'name' and 'n', and we could consider all one-letter
> parameter names as short names
this is what was intended in the spec. if you can update it to stamp
out the ambiguity, that would be most welcome.
> 2) Iterate over all named parameters and build unambiguous prefixes. If any
> of them is just one letter short, we consider it a short name.
> Anz opinions from p6l about it?
this method has too much magic.