News for hackers. Stuff that matters.
Re:Go is boring, and that’s fantastic by karmakaze on Thursday July 02, 2020 @12:01PM (#23714719)
That's not even true in the stdlid--there are some io errors that aren't errors per se and at the same time perform an action and return a value, e.g. short-write.
Re:Go is boring, and that’s fantastic by reificator on Thursday July 02, 2020 @01:03PM (#23715325)
Sure, and in those cases you could continue to return a tuple. In fact having those cases not return a Result<T, E> when everything else does would actually make it more discoverable; right now people assume err means failure.