You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementation of pattern matching in Scala 3 was greatly simplified compared to Scala 2. From a user perspective, this means that Scala 3 generated patterns are a *lot* easier to debug, as variables all show up in debug modes and positions are correctly preserved.
7
+
The implementation of pattern matching in Scala 3 was greatly simplified compared to Scala 2. From a user perspective, this means that Scala 3 generated patterns are a _lot_ easier to debug, as variables all show up in debug modes and positions are correctly preserved.
8
8
9
9
Scala 3 supports a superset of Scala 2 [extractors](https://www.scala-lang.org/files/archive/spec/2.13/08-pattern-matching.html#extractor-patterns).
10
10
@@ -180,7 +180,6 @@ object ProdEmpty:
180
180
case _ => ()
181
181
```
182
182
183
-
184
183
## Sequence Match
185
184
186
185
-`U <: X`, `T2` and `T3` conform to `T1`
@@ -221,18 +220,18 @@ object CharList:
221
220
the type of the remaining patterns are determined as in Seq Pattern.
0 commit comments