Hacker News new | ask | show | jobs
by codahale 3840 days ago
While it’s definitely the case that there are more concise domain-specific examples, as you’ve pointed out, the article’s point stands: in Clojure, a Strategy is simply passing a function as an argument to another function.
1 comments

The caveat is perhaps that in Java 8, a Strategy is simply passing a function as an argument to another function too.

I'd love to see patterns struck down as obsolete with Java language updates.

+ Finding or creating suitable functional interface for passing the function