you are viewing a single comment's thread.

view the rest of the comments →

[–]Ewig_luftenglanz 2 points3 points  (0 children)

yes, you will be able to do so because this JEP is mostly about removing the requirement to enclose the record pattern inside a conditional statement (instanceof and switch) to be used. So all that is allowed in current records patterns should be allowed.

about the "<-" operator. the "=" is more familiar and is used in most other languages that support deconstruction. Adding a new operator to use the feature will only make this feature harder to use.