4 ms·
> Go's lack of sum types mean that there is no static check for whether the error has actually been handled or not. I dunno, my IntelliJ calls out unhandled er
by kosherhurricane 3y ago
> Go's lack of sum types mean that there is no static check for whether the error has actually been handled or not.
I dunno, my IntelliJ calls out unhandled errors. I imagine go-vet does as well.
- grumpyprole 3y agoA simple syntactic check will only ever work as a heuristic. Heuristics don't work for all cases and can be noisy. The point is, no modern language should need such hacks. This problem was completely solved in the 70s with sum types.