3 ms·
"verbose error handling, lack of exceptions" Exactly why I prefer Go to Java and C#.
by Thaxll 5y ago
"verbose error handling, lack of exceptions"
Exactly why I prefer Go to Java and C#.
- exyi 5y agoUnderstandable, but it's a matter of taste. For people who prefer a language with exception, it's good that there now exist a viable solution other than sticking to a language that might not fit their taste so well. It seems to me that F# could get a bit more love from HN-style nerds. Obviously, it's more similar to C# than Golang, but specifically error handling can be done in much nicer way using the Result type.
- grumpyprole 5y agoBut Go has no sum types either!
- ClumsyPilot 5y agoI can live with many things, but no generics in 2021? Over my dead body!