2 ms·
Yes, though you also have to consider default values as a possible source of error.
by room271 7y ago
Yes, though you also have to consider default values as a possible source of error.
- Insanity 7y agoTrue, but you could provide default values as well if you use something like this: https://medium.com/@meeusdylan/go-reduce-function-parameters-19b785a87a59 https://medium.com/@meeusdylan/go-reduce-function-parameters... You'd need extra logic to know a value has not been set at all though. At which point the complexity might not outweigh simply..not using them.