logoalt Hacker News

weinzierlyesterday at 9:24 PM1 replyview on HN

A common use case for the sum type is to define a Result (or Either) type. Now, C# not having checked exceptions is not as much in need for one as Java is, but I could still imagine it being useful for stream like constructs.


Replies

Quarrelsomeyesterday at 9:39 PM

yeah this is the one I've considered as being mildly compelling. But don't we lose the fun of having exception handling as separate to the happy path?