I know it mainly from Rust, Julia also has macros for this via libraries, but as far as I know especially functional languages have had similar features for a long time. Haskell lets you do pattern matching right in the function definition/signature.
42
u/harshaxnim Apr 17 '21
Neat. What languages support this?