Plurrrr

Sun 19 Jan 2020

Go: Reduce function parameters

Typically you don’t want functions that take a lot of parameters, and though there’s no magic number for how many is “too many”as it depends a bit on what the function is doing. But when you have a function that takes many parameters, there’s a good chance that the function is not exactly “Single Responsibility” and is doing too much.

Source: Go: Reduce function parameters, an article by Dylan Meeus.