I'm not an expert but as far as I know there may also be performance concern that may affect your decision. If you write a performance-critical code and you know that a particular function will be called in a loop (consider a renderer function for items inside some data view) then it's better to use formal parameters so you don't waste time on constructing the object to make a function call as well as on extracting parameters from object properties inside the function.
Please correct me somebody if I'm wrong. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
