4 ms·
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 i
by codahale 11y 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.
- phamilton 11y agoThe 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 11y ago+ Finding or creating suitable functional interface for passing the function