On 27 May 2005, at 18:25, Ovid wrote:
--- Ian Langworth <[EMAIL PROTECTED]> wrote:
Reflecting upon this, I'm not even sure why I'd want argument
modification as a feature. (Maybe I still had Hook::LexWrap on the
brain.) I might just take this out.
I vote for taking it out. I view contracts to be similar to
exceptions
in one respect: when implemented properly, removing them from the
code
should not affect the normal operation of the code (sweeping a few
things under the rug there). Thus, argument modification is a no-no.
Some might argue against the bondage and discipline, but they're
probably not going to be using Class::Agreement anyway :)
100% agreement. I can't think of a single scenario where argument
modification would be a good thing for contracts. AOP maybe. DbC nope.
Adrian