A design that subsumes the various syntactic forms of
ifstatements/expressionsswitchon valuesmatchon patterns and pattern guardsif-letconstructs
and scales from simple one-liners to complex pattern matches.
A design that subsumes the various syntactic forms of
if statements/expressionsswitch on valuesmatch on patterns and pattern guardsif-let constructsand scales from simple one-liners to complex pattern matches.
This looks very similar to The Ultimate Conditional Syntax, although that’s for ML so it doesn’t have the nice syntax for chaining method calls.
The author of that paper hung around in the lang design forum were I originally presented this.