Blog: Patterns Are Not Expressions

In the past couple of weeks, I have seen that several people were repeatedly confused about, and asked questions related to, the superficially non-intuitive behavior of patterns and pattern matching, despite the Rust book extensively covering the issue of patterns.

Thus, I decided to write up a hopefully more accessible, intuitive, and not too long explanation as to why patterns behave the way they do, and how they are different from expressions and operators. Here it is..