On Fri, Jan 13, 2017 at 10:32 PM, ToddAndMargo
wrote:
> I almost understand what you said. What do you/they mean by
> "positional parameters"?
>
foo(1, 5, :bar)
1 and 5 are positional: what they represent can only be determined by
knowing their position in the parameter list. Which is why they
On 01/13/2017 06:53 PM, Brandon Allbery
wrote:
On Fri, Jan 13, 2017 at 9:50 PM,
ToddAndMargo
wrote:
Is their example a boo-boo?
:$type, # Optional
How is this "opti
On Fri, Jan 13, 2017 at 9:50 PM, ToddAndMargo wrote:
> Is their example a boo-boo?
> :$type, # Optional
>
> How is this "optional" when "!" is the default?
>
>
You misunderstood that section: it is the default only for positional
parameters.
--
brandon s allbery kf8nh
Hi All,
I am reading up on subroutines over at:
https://en.wikibooks.org/wiki/Perl_6_Programming/Subroutines
The above states:
In a subroutine declaration, named parameters must come after
all required and optional positional paramete