3 ms·
True, but you could provide default values as well if you use something like this: https://medium.com/@meeusdylan/go-reduce-function-parameters-19b785a87a59 htt
by Insanity 7y ago
True, 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.