5 ms·
I like Clojure, but stopped using it due to not having a good way to define DTOs at a service level (I prefer noisy statically typed languages apparently). Best
by virmundi 10y ago
I like Clojure, but stopped using it due to not having a good way to define DTOs at a service level (I prefer noisy statically typed languages apparently). Best guess.
(-> {}
ice
(rye :2-fingers)
bitters
absinthe
shake
strain
garnish)
Now I think that strain flipped the returned type from drink to a glass with the drink.
All this shows is that OO and FP are duals [1]. I don't claim to get FP perfectly, but my moment of zen was realizing this.
1 - http://wiki.c2.com/?ClosuresAndObjectsAreEquivalent http://wiki.c2.com/?ClosuresAndObjectsAreEquivalent
- doublerebel 10y agoThank you, I had not seen that c2 page. Many in the JavaScript community have fervent arguments for/against closures/objects (which I do not share). The educated debate in that link is a quality resource on the subject.
- sankyo 10y agoforgot the sugar!