News for hackers. Stuff that matters.
Re:Rust went from side project to world’s fastest growing la... by sidlls on Tuesday February 14, 2023 @10:35AM (#34790796)
You’re not stupid: the OP wrote a bunch of jargon that more or less nobody in the industry uses on any regular basis. It’s a similar pattern to functional programming evangelists’ rhetoric.

The short answer is this: the compiler enforces type-checked unions (called `enum` in Rust) and requires any `match` block (cf `switch`) checking a value to exhaustively check all possible ones. That’s not the whole story, but it covers about 99.99% of the use cases the OP refers to.

There are no comments on this comment yet.