Hacker News new | past | comments | ask | show | jobs | submit login

If it works well, it's not feeling like a square peg in a circle hole, if it makes your life easier; I'd say it's fine.

I've done that a few rare times, and I think in some case it makes a clean solution. See [1] for an example.

However I don't think that's how people should do _all of the time_ when they try to force an OO model onto Go.

[1]: https://github.com/aybabtme/loghooks/blob/master/hooks.go#L2...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: