News for hackers. Stuff that matters.
Re:Try Gleam by yladiz on Monday November 09, 2026 @04:10PM (#50432201)
I think the single hole version is a good compromise compared to actual currying or multiple holes, since it's strictly better than something like first or last argument threading (e.g. ->, ->> in Clojure), easier to reason about than currying, and in my experience most of the time you'll only be dealing with one argument to pass piping anyway. Anonymous functions are fine for the cases you need more flexibility.

There are no comments on this comment yet.