Re:First look at Clojure.core.typed
by agumonkey on Thursday August 29, 2013 @10:35AM
(#6296050)
The source code is quite surprising https://github.com/hraberg/shen.clj/blob/master/shen/src/pro...
[ Parent
| on HN ]
Indeed, I don't really understand how that could be code. Are those just cute symbols to match on?
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...