Whats worth taking from "railroad oriented programming"

Inkrementator invalid at invalid.org
Sun Mar 2 23:12:36 UTC 2025


On Thursday, 27 February 2025 at 21:37:12 UTC, monkyyy wrote:
> Why does either have space for both values? Is that important?
> Shouldnt this by an alias of sumtype?
> is either to pair as symtype is to tuple?

Conceptually, `Either` is a tagged union/ sumtype similar to 
Nullable, but instead of the value `null` to signal that 
something went wrong, you can define an arbitrary error type, 
i.e. a string which is the error messages.


More information about the Digitalmars-d mailing list