Should the state variables be passed around as pointers or should tail calls be used?
Method 1:
func() {
...
foo(&stateVariable1);
bar(&stateVariable1, &stateVariable2);
... // result using state-variables 1 & 2
return result;
}
Method 2:
func() {
... // foo
return bar(stateVariable1);
}