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 modify it, walk it, print it, and treat it as a list in general. In particular, a macro is a list that operates on a list to produce a list that gets used as a list, possibly to define a data structure, or a function, or another macro or whatever else you might want. Lisp code is data. Lisp data is code. This is not true in most other languages. Tim Daly On Mon, 2011-10-31 at 02:40 -0700, 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? > -- 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