Hacker News new | ask | show | jobs
by divs1210 1798 days 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".

2 comments

I 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.

I've seen inscrutable one-liners with Elixir's capture syntax, too (and written some myself :) )