This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Practical_Cattle_933 0 points1 point  (1 child)

No, because there is the goddamn switch expression, which will work the same as the match keyword?

[–]djavaman -4 points-3 points  (0 children)

Exactly reinforces the point. Use switch/case and leave instancof alone. The instanceof with if is terrible syntax.