|
-
August 26th, 2009, 01:12 PM
#7
Re: Beginner question about functions.
With that in mind, passing a large number of parameters to a function could be an indication of a design flaw. Most functions should fall into one of two categories:
1) They have extremely limited functionality, and thus need few parameters.
2) They have only high-level functionality, and thus can have their parameters be objects (structs and classes) which they view opaquely, rather than primitives which they need to do something with.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|