Lurker News

Comments (134) 36 threads

Earlier comments
sagarjauhari#
Love the fact that it is written in Clojure
dTal1 reply#
In the example:

  (foo [1 2 3
        4 5 6
        7 8 9])
How does one change it to:

  (foo [1 2 3]
       [4 5 6]
       [7 8 9])
?

edit: Ah, it works if you put all the forms on one line. I suppose it would be considered non-standard to indent that particular syntax in such a way.

chrisoakman1 reply#
You could also just put a "[" in front of "4" and "7".

Parinfer will infer the closing brackets.

dTal#
That yeilds

  (foo [1 2 3
       [4 5 6]
       [7 8 9]])
mark_l_watson#
A beautifully written web site. It made me happy just to look at it.

I haven't been doing much Clojure or Common Lisp development this year but I am putting Parinfer on my look-at list.

zeckalpha#
If I go to lisp for day to day work, I plan on using the syntax from SRFI-110 to encourage other people to work with me: http://srfi.schemers.org/srfi-110/srfi-110.html

Even if the code at rest is in S-expression syntax, editing it in this syntax would be slick.

Load more comments