Comment

Comment by zeugmasyllepsis

Curious, what is your argument in favor of a container over a type union to represent Result? As long as the type checking system forces users to refine the union to use the value and is aware of blocks of code within type guards (I've heard this referred to as "flow-aware typing" but I'm not sure if that's a standard term) then the advantage of an explicit Result type isn't very obvious to me. What am I missing?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton