Hacker News new | ask | show | jobs
by mdemare 6064 days ago
Clojure has #(+ % 10) for Arc's [+ _ 10]. Does anyone know if Arc inspired Clojure, or whether there's prior art for this syntax?
4 comments

I think the convention predates both. boost::bind for C++ does something similar: http://www.boost.org/doc/libs/1_40_0/libs/bind/bind.html
I think Clojure copied Arc on this.
Actually it was inspired by Mathematica:

http://reference.wolfram.com/mathematica/ref/Slot.html

Goo appears to have something similar in its op (partial evaluation) function.
At least the _ part is used in both Haskell and Prolog.