A design that subsumes the various syntactic forms of
if
statements/expressionsswitch
on valuesmatch
on patterns and pattern guardsif
-let
constructs
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.