So reduce here is actually written in Java, hence the call to the .reduce method. It's perfectly possible to write reduce in pure Clojure today but it's probably not done that way because of performance reasons.
For the real special forms you will have to look at the Clojure compiler source starting from here - https://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/Compiler.java#L39 Regards, BG On Mon, Apr 29, 2013 at 6:21 PM, David Simmons <shortlypor...@gmail.com> wrote: > Hi > > I am just setting out to learn Clojure (my 2nd attempt) and am starting to > feel more comfortable with the language (and very excited about the > possibilities). > > However, I'm reading Clojure Programming (Emerick, Carper and Grand) and > read that Special forms are the primitive building blocks on which the rest > of the language is built. I therefore thought that every function defined in > Clojure.core would be defined in terms of the specials forms in some way. So > I looked at the source for reduce to see that it actually makes a call to > java ". reduce". This would imply that the special forms are not quite what > I understood. > > Am I right in thinking that certain Lisps do indeed define all of their > higher level functions in terms of a very small subset of special forms or > have I completely misunderstood. > > Kind Regards > > Dave > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > -- Baishampayan Ghose b.ghose at gmail.com -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.