<i>You can use, for example, elaborate if-else constructs that firstly try to determine type of the value, then check for values.</i><p>That&#x27;s nowhere near pattern matching. Two concepts make pattern matching vastly superior to if-else constructs:<p>- Non-exhaustive checks by the compiler.<p>- Destructuring