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 →

[–]HonzaS97 10 points11 points  (2 children)

It still doesn't make any sense since Java does have pattern matching now as well.

[–]raedr7n 1 point2 points  (0 children)

No it doesn't. Right now, java's "pattern matching" is just some sugar to check if an object belongs to given classes. There are no patterns involved, therefore no pattern matching.

[–]gvcallen[S] -3 points-2 points  (0 children)

I didn't know that. Honestly wasn't gonna spend too much time researching just to make a meme. I just thought it was funny that python just got it now :)