On 5/5/04 6:24 PM, Austin Hastings wrote:
> To answer Dan's posting: I fully expect to never use any of these
> sigils, myself. I'm sure there will be traits for this- nice
> verbose traits. (Signatures are about as write-once as you can get...)
> 
> method x(
>   requires:invocant $me,
>   requires $requisite,
>            $mandatory,
>            $necessary,
>   optional $maybe,
>            $possible,
>            $potential,
>            $unlikely,
>   named    $yclept,
>            $hight,
>            $aka,
>   named:*  %named,
>   va_list  @list)
>   {...}

What happened to my poor "required, named"?  Oh, the pain!

    method foo (+$bar is required) { ... }

    method foo (~$bar is required) { ... }

Eh, I've never been a fan of ~ (even for concatenation...sigh, dot has
ruined me forever).  Anyway, once we're spelling things out, don't forget to
throw in some traits for params that are required and must be provided as
pairs.  Damian promised! ;)

-John

Reply via email to