2009/2/23 Cosmin Stejerean <cstejer...@gmail.com> > On Mon, Feb 23, 2009 at 11:10 AM, Mark Volkmann <r.mark.volkm...@gmail.com > > wrote: > >> >> On Mon, Feb 23, 2009 at 10:55 AM, Christian Vest Hansen >> <karmazi...@gmail.com> wrote: >> > >> > On Mon, Feb 23, 2009 at 4:42 PM, Mark Volkmann >> > <r.mark.volkm...@gmail.com> wrote: >> >> >> >> I have an idea I'd like to float to see if there are reasons why it's >> >> a bad idea. >> >> >> >> What if Clojure had an alternate "surface" syntax that was translated >> >> into standard Clojure syntax by a kind of preprocessor? >> > >> > Do you by any chance mean "custom reader" when you say "preprocessor"? >> :) >> >> No. This would be a translation step before the code is fed to the >> current Clojure reader. >> > > This sounds to me like a better fit for an editor plugin (that would > add parentheses as you type based on indentation, and optionally hide them > as well when editing the source). >
Indeed, it's something I've also kept in mind when clojure-dev has waaay more functionalities than now (so this day is not coming very soon ;-). That is, experimenting with an optional thin layer between the user and the real source file. In order for that to work, though, I think the rules must allow for real bi-directional translation from the 2 forms. And concerning the rule for if, there may be another more general pattern to find. Certainly something along the lines of how Haskell does things. -- Laurent > > -- > Cosmin Stejerean > http://offbytwo.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 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 -~----------~----~----~----~------~----~------~--~---