Re: MX::Method with Maybe[] not working?
[email protected] (Stevan Little)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
Noel, On Feb 4, 2008, at 10:16 AM, Noel Maddy wrote: >>>> Noel Maddy 02/04/08 10:11 AM >>> >> I'm not getting what I expect when I use Maybe[] with MX::Method. >> Am I >> misunderstanding this, or doing something wrong? I suspect that MooseX::Method has not been updated to be able to use the Maybe[`a] type, you should contact the author about this (if I see him I will pass this on). Although, I do seem to recall that we fixed this (or something similar), so perhaps the new version just hasn't be uploaded. You might want to give the version in svn a try (http://code2.0beta.co.uk/moose/svn/) > Quick followup - 'Value|Undef' works as I expect -- is this the way > it's > supposed to be done? It is just another way to accomplish the same thing, and since Maybe [`a] is not working, I suggest you go with this for now. - Stevan