Re:First look at Clojure.core.typed
by vutekst on Thursday August 29, 2013 @11:06AM
(#6296196)
Indeed, I don't really understand how that could be code. Are those just cute symbols to match on?
[ Parent
| on HN ]
Re:First look at Clojure.core.typed
by chrismonsanto on Thursday August 29, 2013 @11:16AM
(#6296259)
Yes -- see https://github.com/hraberg/shen.clj/blob/master/shen/src/pro...
Upper case symbols are variables, as in Prolog. The others are literal matches.
Elsewhere in the file he matches on things like "rename the variables": https://github.com/hraberg/shen.clj/blob/master/shen/src/pro...