On Aug 18, 11:09 am, michele <michelemen...@gmail.com> wrote:
> Wouldn't that make it easier to keep track of them.
>
> Example:
>
> (defn myfn-a [a b]
>   (if (zero? b)
>     a
>     (recur
>       (afn (bfn (...)) a)
>       (dec b))))
>
> (defn myfn-b [a b]
>   (if (zero? b)
>     a
>     (recur
>       (afn (bfn (...)) a)
>       (dec b)
>     )
>   )
> )

Lisp programmers don't actually "see" parentheses.  They read right
past them.  The editor takes care of parentheses and indentation.  To
a real Lisp programmer, your code above may as well look like this:

 defn myfn-a [a b]
   if  zero? b
    a
     recur
       afn  bfn  ...   a
       dec b

Viewed in that light, devoting a line to each close parenthesis is
just a shameful waste of screen real estate.  It's similar to the
profligacy that programmers in languages like Java are guilty of when
they use 4 or even 8 character indents.  Before you know it you've got
a page of code that's 160 characters wide and 1000 characters long and
you need a 40" screen just to find your way around.

The more code you can catch in one glance, the better your overview.

-- 
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

Reply via email to