Thanks Remi. Yes, this text could be better (interestingly, it is unchanged
from nearly a year ago!). I think you’d agree that *pattern matching* with
nested patterns provides a null-safe approach to data access, right? That’s
really what I am getting at. In that sense, record patterns are a
Hi Gavin,
I don't buy the argument that record patterns promote a null-safe style of
programming as this is stated several times in the JEP.
The ""null-safety"" (notice the air quotes) mostly comes from the instanceof or
the switch (which semantics is equivalent of a cascade of if instanceof),
Dear experts,
Just to let you know that I have updated JEP 405:
https://openjdk.java.net/jeps/405
You will see that we have removed the array patterns from this JEP (and it has
been retitled accordingly). We're still committed to supporting a direct pattern
form for arrays, but given our tight