Y
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
scott_s
6064 days ago
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
link
jimbokun
6064 days ago
I think Clojure copied Arc on this.
link
richhickey
6063 days ago
Actually it was inspired by Mathematica:
http://reference.wolfram.com/mathematica/ref/Slot.html
link
Zak
6064 days ago
Goo appears to have something similar in its op (partial evaluation) function.
link
tomjen2
6064 days ago
At least the _ part is used in both Haskell and Prolog.
link