Hacker News new | ask | show | jobs
by true_blue 421 days ago
That new Rhombus language that was featured here recently has an interesting feature where you can use `_` in a function call to act as a "placeholder" for an argument. Essentially it's an easy way to partially apply a function. This works very well with piping because it allows you to pipe into any argument of a function (including optional arguments iirc) rather than just the first like many pipe implementations have. It seems really cool!
1 comments

Sounds like Clojure's as-> macro (https://clojuredocs.org/clojure.core/as-%3E).