Re: Homoiconicity in clojure (macro power)

2011-11-03 Thread Craig Brozefsky
Alex Baranosky writes: > Julian, > > I saw no flames fired from Craig - and I am particularly intrigued by non-Lisp > languages such as Ioke that are homoiconic and have macros. I meant my comment as a pre-emptive joke to derail a replaying of the old tale of Dylan, the lisp with infix syntax.

Re: Homoiconicity in clojure (macro power)

2011-11-02 Thread Lee Spector
On Oct 31, 2011, at 5:40 AM, vikbehal wrote: > I am from java Background. We say Homoiconicity in Clojure (Lisp). > Code is data and data is code. I read various blogs on it, still not > clear, Can you give me some example? FWIW I think that homoiconicity can be useful in a variety of circumstan

Re: Homoiconicity in clojure (macro power)

2011-11-02 Thread Jeff Heon
This is the explanation that really made it click for me: The nature of Lisp http://www.defmacro.org/ramblings/lisp.html -- 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 fro

Re: Homoiconicity in clojure (macro power)

2011-11-01 Thread Alex Baranosky
Julian, I saw no flames fired from Craig - and I am particularly intrigued by non-Lisp languages such as Ioke that are homoiconic and have macros. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegrou

Re: Homoiconicity in clojure (macro power)

2011-11-01 Thread Julian
Julian writes: >> I wonder what would be required for a modification to the clojure reader in >> order to do this... >No intention of picking on Julian, but do we really have to re-live all >of the flamewars and jawflapping of comp.lang.lisp on the clojure group >again? You're giving me flas

Re: Homoiconicity in clojure (macro power)

2011-11-01 Thread Craig Brozefsky
Julian writes: > I wonder what would be required for a modification to the clojure reader in > order to do this... No intention of picking on Julian, but do we really have to re-live all of the flamewars and jawflapping of comp.lang.lisp on the clojure group again? You're giving me flashbacks 8

Re: Homoiconicity in clojure (macro power)

2011-11-01 Thread Julian
There are some examples of homoiconicity in other languages here: http://c2.com/cgi/wiki?HomoiconicExampleInManyProgrammingLanguages (being TCL, Joy and Io) Also worth noting is the recent work by Ola Bini on Ioke. Another interesting homoiconic language was Apple's Dylan language - which tran

Re: Homoiconicity in clojure (macro power)

2011-10-31 Thread Baishampayan Ghose
> I am from java Background. We say Homoiconicity in Clojure (Lisp). > Code is data and data is code. I read various blogs on it, still not > clear, Can you give me some example? Using macros it's possible to add "new syntax" to the language which is extremely hard (if possible at all) to achieve

Re: Homoiconicity in clojure (macro power)

2011-10-31 Thread daly
While Peter Norvig was discussing Python with John McCarthy (inventor of lisp) in the audience: John simply asked if Python could gracefully manipulate Python code as data. "No, John, it can't" was Peter's reply. Create a list and call read on it. Create a function, manipulate it as a list to mo

Homoiconicity in clojure (macro power)

2011-10-31 Thread vikbehal
I am from java Background. We say Homoiconicity in Clojure (Lisp). Code is data and data is code. I read various blogs on it, still not clear, Can you give me some example? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send em