X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=PLANS;h=35c6aa10d127d9ac42287ec265916da2efa23106;hb=080e3614eaacadc5834631fd44ea7ec645927d14;hp=c986a04cbcde50da87cc9cb1e6d9b39f7b76c9c7;hpb=d9b400059075f0cdffc909861da391aff5f7db66;p=gitmo%2FMoose.git diff --git a/PLANS b/PLANS index c986a04..35c6aa1 100644 --- a/PLANS +++ b/PLANS @@ -1,19 +1,6 @@ ----------------------------------------------------------- -- Type Constraints refactor ------------------------------------------------------------ - -- move the details of TC construction that are in Moose.pm and - Moose::Util::TypeConstraints into the Moose::Meta::TypeConstraint module - -This will make it much easier to generate TCs on their own, without -having to use the sugar layer. This should also clean up their APIs -as well, which will make it easier to subclass them. - -- allow a switch of some kind to optionally turn TC checking off at runtime - -The type checks can get expensive and some people have suggested that allowing -the checks to be turned off would be helpful for deploying into performance -intensive systems. Perhaps this can actually be done as an option to make_immutable? +----------------------------------------------------------- - add support for locally scoped TC @@ -29,6 +16,12 @@ would allow custom metaclasses to provide roles to extend the sugar syntax with. (NOTE: Talk to phaylon a bit more on this) +- allow a switch of some kind to optionally turn TC checking off at runtime + +The type checks can get expensive and some people have suggested that allowing +the checks to be turned off would be helpful for deploying into performance +intensive systems. Perhaps this can actually be done as an option to make_immutable? + - misc. minor bits * make the errors for TCs use ->message @@ -77,6 +70,8 @@ my $Foo = subtype Bar => where { ... }; [17:13] that's fine for me [17:13] k +coerce_deeply => 1 # reads better + ----------------------------------------------------------- - TC stuff DONE ----------------------------------------------------------- @@ -105,6 +100,14 @@ need to make your object/class bound stuff. These have proven so useful for me in the latest $work project that I think they should really be core. +- move the details of TC construction that are in Moose.pm and + Moose::Util::TypeConstraints into the Moose::Meta::TypeConstraint module + (DONE) + +This will make it much easier to generate TCs on their own, without +having to use the sugar layer. This should also clean up their APIs +as well, which will make it easier to subclass them. + ----------------------------------------------------------- -- Roles refactor -----------------------------------------------------------