Re:Why Clojure? (2010)
by dpkp on Friday December 30, 2016 @12:18PM
(#13285555)
> In FP you will end with garnishFingerFood and garnishCocktail because you need to encode somewhere a specifics of garnish action. In OOP you will have garnish methods on Coctail and FingerFood and specifics and related knowledge how you need to perform garnish will be on object itself.
You're complecting. In the real world of Clojure, you could simply define a protocol and provide different implementations of "garnish".
You're complecting. In the real world of Clojure, you could simply define a protocol and provide different implementations of "garnish".