NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
I think that's a good compromise (Score:1)
I would prefer to have warnings for possible problems that you would only run into by accident. If you would not want that to happen, you could just declare so.
What's Rolsky's position on the subject, If I may ask?
Re: (Score:2)
I don't know how Dave feels, but Stevan Little has already said "no". He prefers new features to be tested in a MooseX:: class and that makes sense to me.
Re:I think that's a good compromise (Score:1)
Actually, I said no to the idea of:
meaning "don't compose any methods, but i still want to do this role", because I think that it is not very clear and could very easily be confusing to people. After all you would never say:
it just wouldn't make sense. I just really never liked APIs where the lack of something was significantly meaningful.
Now, all that said, I actually really kind of like:
because it is clear and obvious and pretty useful. In fact, if you had proposed this originally, and not tied it to the
includes => []being a shortcut to a "interface" type role, I would probably have said "go for it".In fact, I would be happy to accept a fork (no more patches now that we are on git) which implemented
includes => [ 'to_xml' ](along with tests and docs of course) as long as it didn't do the "interface" role shortcut thing.- Stevan
Reply to This
Parent