Question Reporting errors in procedure 

Forum: Com Sci 12500, U Chicago, Autumn 2002, Discuss Classwork
Re: News Project Step #1, due Friday 8 November
Date: 2002, Nov 07
From: Nathan Krapf <krapfn@uchicago.edu>

When reporting errors, should we get the error to be reported in the procedure that is being called, or if we know a subsequent procedure call will pick it up, can we wait until then?

For example, the min_ratintvl->rational and max_ratintvl->rational both test if the input is a ratintvl. The member_ratintvl? procedure needs to also do that, but in the rest of that procedure, I use min_ and max_ratintvl->rational, which would catch the error of the intput not being a ratintvl...so do I also need to check in member_ratinvl? to see if it is not a ratintvl, in addition to min_ and max_?


Messages

1. Feedback My thoughts by Mark Kittisopikul, 2002, Nov 07
1. None more thoughts by Nathan Krapf, 2002, Nov 07
1. Note Even more thoughts by Mark Kittisopikul, 2002, Nov 07
... 1 Message(s)
2. Feedback Leave the efficiency issue for later by Mike O'Donnell, 2002, Nov 07
2. Feedback Both techniques accomplish a report, but immediate reporting is more robust by Mike O'Donnell, 2002, Nov 07

to: "Reporting errors in procedure"