top | item 10764714

(no title)

codahale | 10 years 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.

discuss

order

phamilton|10 years ago

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.

TwoSheds|10 years ago

+ Finding or creating suitable functional interface for passing the function