3 ms·If you squint a little, what OP has invented here is pattern matching with algebraic data types.by cogman10 3y agoIf you squint a little, what OP has invented here is pattern matching with algebraic data types.