scala / scala-dev

Scala 2 team issues. Not for user-facing bugs or directly actionable user-facing improvements. For build/test/infra and for longer-term planning and idea tracking. Our bug tracker is at https://github.com/scala/bug/issues
Apache License 2.0
130 stars 14 forks source link

align name-based pattern matching with dotty #533

Open adriaanm opened 6 years ago

dwijnand commented 6 years ago

What are the highlights?

smarter commented 6 years ago

We've had to make dotty's implementation fairly close to scalac's for compatibility reasons, but I think product patterns at least are new: http://dotty.epfl.ch/docs/reference/changed/pattern-matching.html (they're mostly useful to pattern match on case classes without boxing, scalac achieves that by special-casing pattern matching on case classes)

dwijnand commented 6 years ago

I see. That looks like a cool feature.