Java object destructuring
Java Language Architect Brian Goetz has recently talked about adding destructuring to an upcoming version of Java. Look for the Sidebar: pattern matching chapter in his paper: Towards Better Serialization I strongly dislike the current proposal of the syntax, but according to Brian your use case will look like the following (please note, that at … Read more