Re:Go generics draft design: building a hashtable
by alkonaut on Wednesday June 17, 2020 @05:45PM
(#23557156)
When you chain multiple things that can go wrong with Result[T,E] or Option[V] it should be possible assuming there are methods for chaining/fallback. E.g. opening a file, reading the contents, parsing the contents etc. If all those 3 return Result[T,E] and you want the overall result (parsed) T or the first error to occur, then you should be able to chain that.
[ Parent
| on HN ]
There are no comments on this comment yet.