in reply to Being more Assert-ive with Perl
It is not enough to have perl complain the first time I try to do $arg->{"key"} on an array ref. I want to catch things prior to that, and not allow any part of my methods to be run unless it receives the proper input.
Design By Contract does not seem to solve the problem, it only makes language translator complain a little earlier, does it? We need to test the code with both correct and incorrect input values in any case.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Being more Assert-ive with Perl
by stvn (Monsignor) on Sep 17, 2004 at 15:09 UTC | |
by kappa (Chaplain) on Sep 17, 2004 at 15:33 UTC | |
by stvn (Monsignor) on Sep 17, 2004 at 15:42 UTC | |
by kappa (Chaplain) on Sep 17, 2004 at 16:18 UTC |