Re:"14 Years of Go" by Rob Pike
by tgv on Tuesday February 27, 2024 @01:49PM
(#39527935)
I once had a hard time finding a bug, and it turned out someone had overloaded assignment to the boolean member dbIsOpen in some inherited monstrosity class to open/close a database connection. Since then, I prefer functions with clear names. They may still not do what their name says, but it doesn't lull you into thinking local.
[ Parent
| on HN ]
There are no comments on this comment yet.