Re: Java annotation/.NET attributes in Moose

[email protected] (Sherwin Daganato)
Newsgroups perl.moose
Message-ID <CALvYtFkSxA00HxQcd2fvoSSMiuWY68_-7Eo2Nd18TnB+dMWYjA@mail.gmail.com>
On Wed, Oct 19, 2011 at 3:36 PM, Brian Fraser <[email protected]> wrote:
> You don't really need Moose to emulate .NET attributes*; vanilla Perl has
> subroutine attributes:
> http://perldoc.perl.org/Attribute/Handlers.html
> http://perldoc.perl.org/attributes.html

Thanks Brian, but I really need Moose for good reason. It just so
happens that I'm looking for something in Moose that is close to
Annotation/Attributes.

> But honestly, why would you want to do that? Trying to program X in Y is
> always a code smell. In what little Moose I've done, a trait has always been
> the best fit for this sort of thing.

Please see my reply to Stevan.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.