Re:Golang Is Good, Structure Is Bad
by Vendan on Sunday October 01, 2017 @09:32AM
(#15377714)
in a package called baz is already unidiomatic, in cases like that, the function should just be called `New`, leading to usage like:
which, to my eyes, is perfectly fine.
[ Parent
| on HN ]
Re:Golang Is Good, Structure Is Bad
by dullgiulio on Sunday October 01, 2017 @10:24AM
(#15377971)
And the returned Baz should be a pointer.