r/functionalprogramming • • Feb 11 '20

Java What Java has learned from functional languages

https://youtu.be/e6n-Ci8V2CM?list=PLEx5khR4g7PLHBVGOjNbevChU9DOL3Axj
22 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/procsyma Feb 12 '20

In the next slide they show Java switch expressions which actually looks like the pattern matching example you came up with. Which is confusing me even more how could they end up with such a garbage snippet.

1

u/blamedrop Feb 13 '20

Yeah, quite lame with not testing snippet that you show in your talk, especially one that is pretty much complete and easily "testable" as I've shown in the link with the online REPL.