Re:Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers
by brobinson on Sunday September 04, 2016 @09:53PM
(#12427653)
Could you just create well-named functions which call LibraryFunction() internally rather than relying on the caller to specify 1 or more default arguments?
[ Parent
| on HN ]
Re:Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers
by ben_jones on Sunday September 04, 2016 @10:06PM
(#12427695)
Yeah. It's funny I'm currently working on two Go libraries one uses the convention you listed [1] and the other [2] uses nil pointers.
[1]: https://github.com/b3ntly/go-sms/blob/master/client.go
[2]: https://github.com/b3ntly/mLock/blob/master/lock.go
Disclaimer: Both libraries are in the pre-alpha stages and are extremely light on tests and/or broken.