On Jul 30, 2009, at 7:24 PM, Aaron Cohen wrote: > Are you coming from a C or C++ background or is this something lispy > I haven't seen before?
I first ran into this in Scheme, where I think its use is somewhat more idiomatic than in CL. As the author observes, it's generally used instead of "to" in the CL libraries on my system, though it wouldn't surprise me much to see it used in code wrapping C structures. CL usually takes the most verbose option available, confirmed anecdotally by 241 occurrences of "-to-" in a function name in the selection of libraries on my system, versus 129 occurrences of "->." This structure is even employed in SRFI #4, published in 1998, suggesting that its use in the Scheme community has been uncontroversial for at least 11 years. Scheme has always prized a terse kind of elegance where Lisp has sought comprehensiveness. On Jul 30, 2009, at 7:37 PM, Richard Newman wrote: > I suppose in Clojure we could use a real arrow character, with UTF-8 > available in symbol names... Clojure being the 21st century language it is, I would be delighted to see '¬ instead of 'not, 'ƒ instead of 'fn, '∑ instead of a hypothetical 'sum builtin, and → instead of ->. I'm sure I'd enjoy reading code with such conventions, but I think I would find typing it out is somewhat tedious. You might find the Emacs mode "Pretty Lambda" to be useful; the effect on Haskell code is really quite nice: http://alexott.blogspot.com/2009/02/emacs-haskell-pretty-lambda.html It can be customized for other languages, but I can't find any references to anyone doing it with Clojure yet. Details on the mode here: http://www.emacswiki.org/emacs/PrettyLambda — Daniel Lyons --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---