Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^5: Extensions via Moose

by stvn (Monsignor)
on May 01, 2011 at 01:48 UTC ( #902280=note: print w/replies, xml ) Need Help??

in reply to Re^4: Extensions via Moose
in thread Extensions via Moose

My original question was wondering if these had some syntactic sugar or more mature incarnations in another module already done (like Perl 6 "but" feature).

No, there isn't any sugar. I think there are two reasons for that, 1) doing custom infix operators are pretty much impossible, 2) people don't mind the Role->meta->apply syntax that much (and 3, applying roles to instances is not all that commonly used a feature).

But, I'm also supposing that I'm not breaking new ground in wanting an extension mechanism for a more complex case (not a single class, but functionality is broken up into smaller classes) and other people may have approached it already.

Well, there is also MooseX::Object::Pluggable, but I think perhaps people are still exploring the possible features/complex-insanity that Moose and runtime-roles open up, so you probably have a lot of funky stuff out in the DarkPAN that has yet to reach the CPAN. Honestly, the Moose community on IRC is pretty active, I really think you would benefit from getting involved there.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://902280]
[Lady_Aleena]: Having to rewrite some parts of my site for mobile devices is such a pain in the butt.
[shmem]: Lady_Aleena: what editor are you using, on what platform?
[Lady_Aleena]: shmem, geany on Debian jessie.
[shmem]: some experience with vim?
[Lady_Aleena]: None
[shmem]: I don't know geany, and don't know whether it has support for ctags.
[Lady_Aleena]: ctags?
[shmem]: ctags is a program which (recursively) extracts the symbols from source and stores them in a one-file database. This allows you to query the locations where these symbols (e.g. a subroutine name) are used anywhere in the source code tree...
[shmem]: ...from inside the editor.

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2017-04-27 12:05 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (505 votes). Check out past polls.