News for hackers. Stuff that matters.
Re:Go generics draft design: building a hashtable by hombre_fatal on Wednesday June 17, 2020 @05:10PM (#23556800)
To do anything with a Result/Optional, you have to explicitly get the value inside the box at some point. But the container abstraction also gives you a nice composition abstractions instead of the uncomposable top-level `val, err := do()` destructure.

Though perhaps not quite as compelling without real sum types. I'd have to play with Go's generic-typing sandbox more to form a stronger opinion.

There are no comments on this comment yet.