Join us in person on February 21st, when @rhagarty8 presents "Intro to Open Liberty and the 15 factors for cloud-native apps"! We will be at the @DeutscheBank offices in Cary, NC starting at 6pm!
meetup.com/triangle-java-…
3/ JEP 406 also introduces "guard patterns", kind of like adding an if statement to your switches. This should simplify a lot of switch logic! In this case, Large and Small triangles are defined on the left side of the switch, rather than in an if-statement on the right side.
2/ With pattern matching for switch, we can write code like this, where we test for a type on the left and use it directly on the right without having to cast it ourselves.