[Perl5-syntax] Syntax for Method Traits

Michael G Schwern schwern at pobox.com
Thu May 7 17:36:52 GMT 2009


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

I'd been meaning to add method traits to Method::Signatures fwiw.


-- 
Stabbing you in the face so you don't have to.



More information about the Perl5-syntax mailing list