[Perl5-syntax] Syntax for Method Traits

Cory Watson jheephat at gmail.com
Thu May 7 17:42:23 GMT 2009


On Thu, May 7, 2009 at 12:36 PM, Michael G Schwern <schwern at pobox.com> wrote:
> Cory Watson wrote:
>> I've read up on the p6 trait stuff and whatever else Google could
>> dredge up about method traits and not found a lot.  The only blurb I
>> found of note was in Perl6::Subs (which I don't know to be
>> authoritative, but the author likely knows more than me) that the
>> following are synonymous:
>
> Perl6::Subs is 4 years old.  A lot may have changed since.  Here's the current
> definitive docs on Perl6 subroutine traits.
> http://perlcabal.org/syn/S06.html#Subroutine_traits

Thanks Schwern, I'll take a look at that and try to match it.  I was
just about to starting working on it again after catching up on some
sent-during-lunch emails.

My branch is currently working with: is (Foo, Bar) (the parens came
about because parsing it with strip_proto is easier ;)

-- 
Cory 'G' Watson
http://www.onemogin.com



More information about the Perl5-syntax mailing list