Skip to content

Specify handling of named parameters for junction ordering #32

Open
timo opened this Issue Mar 11, 2013 · 1 comment

1 participant

@timo
Perl 6 member
timo commented Mar 11, 2013

In the specs it says, that the leftmost 'all' or 'none' junction will be autothreaded before the first 'one' or 'any' junction. There is no word on named parameters. Will the "leftmost"ness be determined by the caller?

foo(:var_a(1&2), :var_b("foo"&"bar"));
foo(:var_b("foo"&"bar"), :var_a(1&2));

Will those result in different expansions?

@timo
Perl 6 member
timo commented Mar 17, 2013

Apparently Rakudo can't tell if a named parameter was put before a positional parameter. So I see two possibilities:

  • Teach rakudo about the order of nameds between positionals
  • Add a little paragraph to the specs saying that the positional args will always be autothreaded before the positionals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.