*I think I posted this in the wrong section. Re-posting in the AS3 section.
Hi all, I had a basic programming question: Is it better to data type a function that doesn’t return anything to :void, or should you just use return even if you aren’t returning anything?
function test(theObj:Object):void {
dataObj = theObj;
}
or
function test(theObj:Object) {
dataObj = theObj;
return
}
Is there a difference? What are the advantages/disadvantages or each method?
Thanks!