Re: Moosifying Test-Run Part 2: Probably Not
[email protected] (Dave Rolsky)
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2 Jun 2008, Jonathan Swartz wrote: >> Yes, but to me it seems that it beats the point of using Moose. If I'm >> using Moose, I'd rather have type-checking, so people will know what >> every class member is. > > Is it possible to tell Moose to skip type-checking for particular classes? > That way, one could insert the types solely for declarative purposes, or > could turn on type-checking only in the development version of an > application, or turn off checking for performance critical classes. > > The FAQ mentions this will likely be "in the next release", not sure when > that was written. :) I think the best way to do it would be to include it as an option to immutabilization, since it would then be a simple matter of simply not generating the constraint check code. -dave /*========================== VegGuide.Org Your guide to all that's veg ==========================*/