Juerd writes: > Consider: > > my $foo of Num where { 0 <= $^n < 10 }; > > Is the following also valid? > > my $foo where { 0 <= $^n < 10 };
I don't see why not. The main place C<where> will be useful is in multimethods, and I see that as a reasonable shorthand: multi sub foo(Bar $x, $y where { .data ~~ Bar }); > Or does that have to be like this? > > my $foo of Scalar where { 0 <= $^n < 10 }; > > And can $_ be used instead of $^n? Of course it can. You know that. Luke