When to Check Arguments
List of: Discussion Topic
Subjects: Extending ACIS, C++ Interface
Contents: Application Development Manual

The question that must be evaluated regarding argument checking are:

Does the programmer presume that the arguments being passed into the routine are valid?
Does the programmer start by doing a check to see whether the arguments are reasonably valid?

Argument checking slows down the performance of the routine; however, when the check is omitted, an important debugging tool is lost. The developer must weigh these factors when writing APIs.
PDF/APPDEV/08EXT.PDF
HTM/DATA/ACIS/APPDEV/08EXT/0024.HTM