Re: Some questions about core.clj implementation

2009-11-15 Thread Meikel Brandmeyer
Hi, Am 15.11.2009 um 14:51 schrieb Angel Java Lopez: 2) The cond macro is defined: (defmacro cond "Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates and returns the value of the corresponding expr and doesn't evaluate an

Re: Some questions about core.clj implementation

2009-11-15 Thread Michael Wood
2009/11/15 Angel Java Lopez : [...] > (defn spread >   {:private true} >   [arglist] >   (cond >    (nil? arglist) nil >    (nil? (next arglist)) (seq (first arglist)) >    :else (cons (first arglist) (spread (next arglist) > > Where is defined :else keyword behaviour? I can't find how :else is

Some questions about core.clj implementation

2009-11-15 Thread Angel Java Lopez
Hi people! I'm working on reimplement core.clj using my own C# interpreter for a clojure-like language. Browsing in the 1.0.0 source code of core.clj, I have some questions: 1: this is defn definition: (def #^{:doc "Same as (def name (fn [params* ] exprs*)) or (def name (fn ([params* ] exp