On Mar 4, 2009, at 8:03 PM, Elena wrote: > > I wonder if Clojure does employ the same syntax either for macros and > functions by design or it's just a remainder of Lisp. I think that a > shared syntax for both macros and functions calls is a flaw in the > syntax of Lisps, because you can't tell, just by looking at a form, > which expressions get evaluated and which don't, at least when you are > dealing with side effects. > > Someone says that when you are reading code you are expected to know > the documentation of each form you encounter, but I don't agree. > Usually when I read code I rely heavily on good naming, so I don't > usually need to reach for the documentation. > > Since I'm a C/C++ programmer, my convention is that macros and only > macros are all uppercase, so I can easily spot them and be aware that > they behave differently. > > What do you think? > Thanks
Was their a situation where not knowing if a form was a macro bit you? Considering that many frequently used built-ins are implemented as macros, capitalizing or otherwise annotating-in- name would be annoying. > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---