On Jan 19, 12:33 am, Laurent PETIT <laurent.pe...@gmail.com> wrote: > Hello, > > Just one thought, since I also tried to convert some emacs lisp code > to clojure recently ( paredit.el ). > > It seemed a good idea at first, something like : > > 1. I write a one-to-on conversion, using the same idioms that are used > in CL in clojure > 2. I write a bunch of non-regression tests > 3. I rewrite as much as is necessary so that it becomes idiomatic > clojure and not "CL in clojure". ( remember how some people coming > from C world used to write "C-in-java" ? ) > > After a couple hours working on 1., though, I gave up since the code > "seemed" (*) too imperative and didn't feel "right". I just felt not > "at home" with the code produced. > Since I had the chance that the problem was well understood by me and > I could afford some minor regressions here and there, I stopped step > 1, and currently I'm just doing TDD with steps 2. and 3., writing > idiomatic (at least I hope so :-) ) clojure from scratch. > > HTH, > > -- > Laurent >
Laurent, thanks for sharing your experience and I'll try to complete a conversion today. -Conrad > (*) : I say "semeed" because I don't know emacs lisp that much, and, > maybe, if I had followed the road until its end, I would have made > different conclusions. > > 2010/1/19 Conrad Taylor <conra...@gmail.com>: > > > > > Hi, I'm starting to convert some code over from Lisp to Clojure. > > Thus, I was wondering, what's the appropriate mapping for the > > following forms: > > > defvar > > defparamater > > let* > > defconstant > > mapcar > > > BTW, I was able to find the "Clojure Programming Tutorials and Tips" > > but it didn't require the above forms. > > > Thanks in advance, > > > -Conrad > > > -- > > 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
-- 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