HN Reader
New
Top
Best
Ask
Show
Job
Clojure's Solutions to the Expression Problem
158
27
5 months ago
by adityaathalye
One of the drawbacks about protocols mentioned in the talk is no longer correct. Protocols can now dispatch on metadata, not just type.
(defprotocol Dog :extend-via-metadata true (bark [_]))
4 months ago
by emccue
I miss the days when productivity booster posts were all about REPL, functional programming, composability, immutability.
4 months ago
by ares623
Enjoyed this demonstration as well:
https://max.computer/blog/solving-the-expression-problem-in-...
4 months ago
by stefcoetzee
Note that "full" solutions are possible in standard OO languages as well (without the usual visitor vs subclasses trade-off):
https://news.ycombinator.com/item?id=45210114
4 months ago
by jbhn