Pattern Matching for Switch in Java (JDK 17)
Pattern Matching for Switch in Java (JDK 17)
If all you have is a hammer, everything looks like a nail. This sentence summarizes pretty much how I felt about the idiomatic polymorphism approach to most problems in Java until recently. Polymorphism is just a tool, and as for any tool, it excels at some tasks and performs poorly at others. So what are the tasks where polymorphism does a good job? I would say it is a good tool when you have a…
View On WordPress















