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

In fact, since go does not have explicit constructors, it encourages the factory pattern all over the place. You'll find static factories everywhere in the go library.

http://golang.org/doc/effective_go.html#composite_literals





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

Search: