3 ms·
I have had the same experience! The distinction b/w anonymous and named functions is especially icky. I also agree that Elixir leads to more readable code, lo
by divs1210 5y ago
I have had the same experience!
The distinction b/w anonymous and named functions is especially icky.
I also agree that Elixir leads to more readable code, lots of people in the Clojure community tend to write dense one liners to appear "cool".
- IggleSniggle 5y agoI have a feeling it’s not to appear “cool,” but because when you’re writing code there is a tendency to prefer higher density. Why? Because higher density makes it easier to see the entirety of a context: more code on the screen makes it easier to spot the relationships. This happens in other languages too, of course, but it’s easy to see why Closure pushes flow in that direction.
- dmitriid 5y agoI've seen inscrutable one-liners with Elixir's capture syntax, too (and written some myself :) )