Re:Sshole
by itishappy on Thursday November 05, 2026 @10:18PM
(#50387751)
> It is just a special case of an option type, or a result type, or an error union. Modern languages just extended this idea to objects other than pointers, and with more than one type of error.
These are not the same, and your second sentence suggests why. Option has but a single error type, but result types and error unions allow arbitrary types of error.
These are not the same, and your second sentence suggests why. Option has but a single error type, but result types and error unions allow arbitrary types of error.