Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, though you also have to consider default values as a possible source of error.


True, but you could provide default values as well if you use something like this: 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: