Java annotation/.NET attributes in Moose

[email protected] (Sherwin Daganato)
Newsgroups perl.moose
Message-ID <CALvYtFkdy=B6XgicMgcxQ0NLMP2QWtPJY35jgicQajDN1epwCw@mail.gmail.com>
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
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.