scala/scala3

Scala Pattern Matching on Java Records (JEP-440)

Opened this issue · 1 comments

Discussed in #18115

Originally posted by utenma July 2, 2023
Java 21 added a very basic pattern matching for Java records, following @smarter's feedback
there is chance Scala can take advantage of them.

image

I agree that this should be fairly high priority. Good Java interop has always been one of the engines driving Scala's success, so we shouldn't let that slide, or not too far or for too long, anyway.

@Gedochao can you tag and/or milestone this appropriately?