Functions, particularly ones that carry out critical tasks like opening windows, should always check to see if their parameters are valid.
This usually involves making sure that they are the correct type and/or are within some expected range. First and foremost, then, we need routines to determine if the parameters are valid.
Leave a Reply
You must be logged in to post a comment.