News for hackers. Stuff that matters.
Re:What are potential disadvantages of functional programming? by charlysl on Friday July 28, 2017 @05:12AM (#14872972)
Yes, the Bendersky link explains it very well.

The c2 wiki Shape example is in fact an instance of the Interpreter pattern (although it doesn't mention this I believe), which is the closest thing to pattern matching in Java (Visitor would be the other way of sort of doing pattern matching in Java, and closer to FP, with the same drawbacks and advantages).

There is another good explanation in this PDF: https://ocw.mit.edu/courses/electrical-engineering-and-compu...

There are no comments on this comment yet.