August Karlstrom
2017-08-15 15:22:46 UTC
I often find that procedure calls involving variable parameters can be
somewhat hard to read. For instance, in a call like
Matrices.Multiply(A, B, C)
it is not clear if A or C is is the result of the operation (it could
even be B). In this case I happen to know about the convention of
ordering formal parameters as input, input/output and output parameters
respectively. Therefor I would assume the result is C. Still, it's a bit
unsatisfactory. Are there any other best practices?
Regards,
August
somewhat hard to read. For instance, in a call like
Matrices.Multiply(A, B, C)
it is not clear if A or C is is the result of the operation (it could
even be B). In this case I happen to know about the convention of
ordering formal parameters as input, input/output and output parameters
respectively. Therefor I would assume the result is C. Still, it's a bit
unsatisfactory. Are there any other best practices?
Regards,
August