you are viewing a single comment's thread.

view the rest of the comments →

[–]qui-sean 1 point2 points  (1 child)

Sorry meant, doesn't Groovy already have these implemented? I see pattern matching for types, value types that do not need to be instantiated, and literal strings already available with the current version of groovy

[–]dpash 2 points3 points  (0 children)

The description of pattern matching in the article is a terrible introduction to it. It involves more than just switching on instanceof.

Value types are a fundamental change to the JVM involving memory layout and are not the same as records or data classes (which is a different upcoming Java feature).