Michael G Schwern <[EMAIL PROTECTED]> writes:
>
>I wouldn't mind an optional OO contract system in the core of Perl,
>but this may be a case of "why do it in core when a module will work?"
I _think_ the proposal was to have design-by-contract in the perl core
in the sense that contract is checked when one part of the core
calls another. e.g. that when someone does
char *s = SvPV(sv);
Something checks that 'sv' is a SV * and not an HV * or whatever.
Obviously this is a perl-core-compile-time option and would NOT be
on for production perl as it is SLOW.
Sort of automatically and liberally inserted assert() statements.
--
Nick Ing-Simmons