Re: Trying to create an attribute trait that prompts for a value if none specified

[email protected] (Buddy Burden)
Newsgroups perl.moose
Message-ID <CAL0mxoS+0vUGmSZbYFYsWAXHvFuXFrwGyJQJbFf=B3b5xGan7Q@mail.gmail.com>
Sorry for the holidayus interruptus, guys!  Just getting back to this ...


Edward,

> You also have all the options passed in creation.  As long as you are not
> using attribute override (has +), you have what you need, I think? Something
> like this:

Well, yes, but that's what I was saying in footnote: I'm basically
doing the exact same work that Moose itself is going to do anyway.
And I know from my work on Method::Signatures::Modifiers that
find_or_parse_type_constraint isn't the speediest thing in the world.
(Granted, given that I'm doing user input, it doesn't have to be
blindingly fast, but no sense in being blatantly inefficient if there
are other options.)


            -- Buddy
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.