M
marian.edu
Guest
I personally see functions with output parameters as code smell, I think a function is to be used for simple calculation using input parameter(s) to return one result and I expect there will be no other side effects. If you want to ‘do something’ use a procedure, if you have too many parameters then you might be doing too much in that code block, if really need more parameters use the ‘parameter object’ (if you don’t use OO a temp-table/dataset can work very well). Now, you really should consider passing whatever the function needs as input parameters and don’t rely on global scope… that’s far more important than choosing between a function with output parameters and a procedure or some other OO construct
Marian Edu Acorn IT www.acorn-it.com www.akera.io +40 740 036 212
Continue reading...
Continue reading...