31
things rust shipped without (2015)
(graydon2.dreamwidth.org)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
That's not an alternative, it's removing
let-elseentirely. It's equivalent to this:let-elseis specifically a feature that allows you to use a refutable pattern to deconstruct a value by providing a divergingelsebranch.Removing
let-elseis the whole point of the linked article series:Being able to do to everything Rust does, but without Rust's zoo of
if-then-else,match,if-let,let-elseetc.