News for hackers. Stuff that matters.
Re:Go Is a Well-Designed Language by 9rx on Friday January 31, 2025 @02:36AM (#42885435)
> 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.

Re:Go Is a Well-Designed Language by catlifeonmars on Friday January 31, 2025 @03:15AM (#42885618)
(T, error) is just a special case of (T, E).
Re:Go Is a Well-Designed Language by 9rx on Friday January 31, 2025 @03:37AM (#42885763)
At least we can agree it is (T, E) and not (T or E).