when you write functions, do you generally write them to modify the args passed by reference, or return the computed value? obviously sometimes it would only make sense to use one or the other, but where you have a choice, which do you prefer? personally i like returning because it doesnt necessitate use of temporary variables when i want the original value of a variable i pass by reference, but i'm interested in you guys' opinions...