5 ms·
Runtime errors are easy to happen in Go, main culprit being the typesystem. If you are writing some non trivial abstractions (e.g db calls), you'll almost alway
by dbalan 10y ago
Runtime errors are easy to happen in Go, main culprit being the typesystem. If you are writing some non trivial abstractions (e.g db calls), you'll almost always end up with passing interface{} types, which destroys the compile time type safety.
- gizzlon 10y agoYeah, passing interface{} is for special occasions only and should be avoided if possible. Sometimes it's used too much by people coming from other language, deploying those patterns to Go