3 ms·
> Go's error handling has four possible cases If you consider (T, error) to be logically coupled, there is actually effectively an infinite number of cases. (T
by 9rx 2y ago
> Go's error handling has four possible cases
If you consider (T, error) to be logically coupled, there is actually effectively an infinite number of cases. (T, U, error), (T, U, V, error), (T, U, V, W, error), etc. Although I suspect this take is suffering from trying to project idioms from another language onto Go.
- catlifeonmars 2y ago(T, error) is just a special case of (T, E).
- 9rx 2y agoAt least we can agree it is (T, E) and not (T or E).