Can you do this with a class instance?
Personally I would keep it like you have right now and try bundling functions that you often call in "pairs" (like some said above)
Some of the things programmers do to "tidy up code" or "reduce typing" are an absolute nightmare.
Some people call it "job security measures" because no fecker in the world can understand the code when you have finished with it.
Hell I saw one block of code where the programmer had redefined + - * / to be complex functions.
A += B just added the two values together and stored it in A
A = A + B created a matrix based on B, multiplied A by it converted the results to a vector normalised it and stored it in A
How the hell was I supposed to read the code?
Just don't do it unless you have a really, really good reason for it.
Just don't do it unless you have a really, really good reason for it.
Don't conflate obfuscation with simplification. Good simplifications make code easier to read, not harder.
Just don't do it unless you have a really, really good reason for it.
Don't conflate obfuscation with simplification. Good simplifications make code easier to read, not harder.
And bad ones obfuscate the code