Wally Hartshorn has asked for the wisdom of the Perl Monks concerning the following question:
In looking through Tom Christiansen's Perl Style guide recently, under "Defensive Programming" was an item that said simply "Parameter asserts". No explanation was given as to what "parameter asserts" are and how they are to be used.
I'm making a wild guess that the phrase somehow means "functions should check parameters passed to them to verify that they are reasonable". Does that sound correct?
Two questions:
Wally Hartshorn
(Plug: Visit JavaJunkies, PerlMonks for Java)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parameter Asserts - How do you use them?
by adrianh (Chancellor) on Apr 16, 2003 at 21:16 UTC | |
|
Re: Parameter Asserts - How do you use them?
by demerphq (Chancellor) on Apr 16, 2003 at 22:04 UTC | |
|
Re: Parameter Asserts - How do you use them?
by dze27 (Pilgrim) on Apr 16, 2003 at 20:08 UTC | |
|
Re: Parameter Asserts - How do you use them?
by perrin (Chancellor) on Apr 16, 2003 at 21:05 UTC |