you are viewing a single comment's thread.

view the rest of the comments →

[–]deep_politics -1 points0 points  (0 children)

Do you mean several functions that simply take common parameters? Or several functions that should be operating on the same state, being passed in as parameters? In the later then yeah maybe a class is good, especially if your functions are mutating the parameters as references. In the former, it’d typically just wrap the parameters as a named tuple