Is this sort of construct a little too high level for the intended applications of perl programs?Psuedo Code: use Cool::PrePostModule; ### # some precondition documented here # some postcondition documented here ### sub functionname { # get all yer args here &setPrecondtion('something == somethingelse'); &setPostcondition('thisthing == thatthing'); &checkPrecondition('somethingelse') or die 'I cant verify precondit +ion'; #yadayadayada &checkPostcondition('thatthing') or die 'I cant verify postconditio +n'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pre and Post Condition
by jwest (Friar) on Aug 23, 2001 at 00:57 UTC | |
|
Re: Pre and Post Condition
by princepawn (Parson) on Aug 23, 2001 at 01:02 UTC | |
|
Re: Pre and Post Condition
by CheeseLord (Deacon) on Aug 23, 2001 at 01:05 UTC | |
by E-Bitch (Pilgrim) on Aug 23, 2001 at 02:39 UTC | |
by John M. Dlugosz (Monsignor) on Aug 23, 2001 at 02:56 UTC | |
|
Re: Pre and Post Condition
by John M. Dlugosz (Monsignor) on Aug 23, 2001 at 02:54 UTC | |
by MeowChow (Vicar) on Aug 23, 2001 at 10:14 UTC | |
by princepawn (Parson) on Aug 23, 2001 at 03:15 UTC | |
|
(MeowChow) Re: Pre and Post Condition
by MeowChow (Vicar) on Aug 23, 2001 at 04:25 UTC | |
|
Re: Pre and Post Condition
by Dominus (Parson) on Aug 23, 2001 at 21:09 UTC | |
|
Re: Pre and Post Condition
by E-Bitch (Pilgrim) on Aug 23, 2001 at 21:13 UTC |