return boolean in function scope
View Single Post
02-06-2008, 05:46 PM
Join Date: Nov 2007
I return booleans if the function is suppose to perform an action but isn't required to return data. True and false lets me know if the function was successful or not. It also allows me to not put error handling within the function so that other people can use it easily or I can do whatever I want with the error outside of the function.
View Public Profile
Send a private message to wGEric
Visit wGEric's homepage!
Find More Posts by wGEric