Y
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
phamilton
3839 days 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.
link
TwoSheds
3839 days ago
+ Finding or creating suitable functional interface for passing the function
link
I'd love to see patterns struck down as obsolete with Java language updates.