> +++ doc/trunk/design/syn/S03.pod        Tue Feb  5 09:55:29 2008
> @@ -2791,7 +2791,7 @@
>  are insufficient for defining the "pecking order" of code.  Note that
>  you can bind to either a bare block or a pointy block.  Binding to a
>  bare block conveniently leaves the topic in C<$_>, so the final form
> -above is equivalent to a C<default>.  (Placeholders parameters may
> +above is equivalent to a C<default>.  (Placeholder parameters may
>  also be used in the bare block form, though of course their types
>  cannot be specified that way.)

Is it forbidden to use placeholder parameters in conjunction with
"my"?  Or would it simply not do anything useful?  I ask because "Do
what I mean" would seem to imply that 'my Dog $^foo' would specify
$^foo's type as 'Dog'.  Though if you start doing too much of that,
you're almost certainly better off explicitly defining a signature.

Also, how much trouble would we get in if we spelled the ubiquitous
alias for a method's invocant as C< $^_ > instead of C< $self >?

-- 
Jonathan "Dataweaver" Lang

Reply via email to