|
|
|
|
|
by mrkgnao
3241 days ago
|
|
I use Haskell examples because that's the language I'm most comfortable with, but, e.g. the Result type used in Rust is another example of how this can be done better. https://rustbyexample.com/std/result.html Ergonomic error handling or generics/parametric polymorphism aren't "Haskell methodologies". Go is one of a very small number of languages that have been designed in the last decade and lack features like this. The reason I participate in HN comment threads about Go is largely how entertaining I find comments strenuously rationalizing Go's inadequacies. In one (very recent but definitely memorable) case[1], I was told that > You [should] first reconsider your need to make a generic data structure and evaluate on a case by case basis. [1]: https://news.ycombinator.com/item?id=14970919 |
|