Skip Menu |

This queue is for tickets about the MooX-Types-MooseLike CPAN distribution.

Report information
The Basics
Id: 71000
Status: resolved
Priority: 0/
Queue: MooX-Types-MooseLike

People
Owner: Nobody in particular
Requestors: sharyanto [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Implement subtype (and coerce)
First of all, cool! Any plan for implementing 'subtype' (particularly the 'where' clause) like in MooseX::Types? It'll make the module much more useful for real- world uses. Regards, Steven
On Thu Sep 15 21:59:35 2011, SHARYANTO wrote: Show quoted text
> First of all, cool! > > Any plan for implementing 'subtype' (particularly the 'where' clause) > like in MooseX::Types? It'll make the module much more useful for
real- Show quoted text
> world uses. > > Regards, > Steven
Thanks Steven, My original intent is to create something that provides most/all of the non-parameterized default type constraints found in Moose::Util::TypeConstraints. I hadn't considered subtypes until your suggestion. I'll give it some thought though as it does sound useful.
I'm going to close this as subtype was introduced a long time ago, and there are no plans for adding coerce. Type::Tiny is an alternative that support coercions. On Thu Sep 15 21:59:35 2011, SHARYANTO wrote: Show quoted text
> First of all, cool! > > Any plan for implementing 'subtype' (particularly the 'where' clause) > like in MooseX::Types? It'll make the module much more useful for real- > world uses. > > Regards, > Steven