News for hackers. Stuff that matters.
Re:C’s Biggest Mistake by GeneralMayhem on Tuesday July 04, 2023 @09:55PM (#36594703)
I agree, you really want a sum, not a tuple - that's why my example was absl::StatusOr<T>, not std::pair. But a tuple plus tooling support (e.g., linters in Go that don't allow you to not use the returned error value) can emulate a sum type.

There are no comments on this comment yet.