|Subject:||Path::Router::Route::ValidationMap should accept other type classes|
Path::Router::Route::ValidationMap should be able to accept any type system that provides the proper interface. It is probably just as easy as adding another element to the OR in the class_type declaration: duck_type([ @methods ]) where @methods are the interfaces used by ValidationMap (e.g. 'check'). This gets me to thinking that maybe Moose's type system should define this duck_type itself, or even an interface role filled with requires() declarations, to specify what interface an alternative type system should adhere to. Let's discuss this on #moose-dev sometime, as it would dovetail nicely with Dave Rolsky's work on a new type system.