Sherwin,

Annotations/Attributes are kind of the bastard love child of compiler hints and 
macros, they make less sense in a highly dynamic language like Perl.

Can you explain what it is you want to do with annotations/attributes? And 
perhaps we can point you in a more perl-ish direction.

- Stevan

On Oct 19, 2011, at 3:19 AM, Sherwin Daganato wrote:

> Has anyone here got any idea how to implement Java annotation[1] or
> .NET attributes[2] with Moose? I'm particularly interested in how it
> can be applied to a Moose class and attribute.
> 
> Right now I'm looking into MooseX-Role-Parameterized to create
> parameterized metaclass and attribute traits. It seems to be a fit for
> what I want to do, except that the role block which it requires will
> be empty.
> 
> Anyone with a more elegant solution?
> 
> [1] http://en.wikipedia.org/wiki/Java_annotation
> [2] http://en.wikipedia.org/wiki/.NET_metadata#Attributes

Reply via email to