Simplifying function signatures

Generally speaking, the fewer number of arguments that a function accepts the better, by which I mean the purpose and intended use of a function should be clear, concise, and predictable. Take for example the following function signature: The possible return patterns of this function are as follows: In the first example usage of the… Continue reading Simplifying function signatures