News for hackers. Stuff that matters.

Ask HN: I know Haskell, Clojure, Scheme. Should I learn CL?

I'm definitely comfortable with Haskell, and I learned Scheme through SICP and I've played with clojure enough to know my way around. I've done a little with common lisp, but not enough to claim I know it. Given my experience with related languages, would learning CL be useful for me at all, either academically or practically?
( 5 comments | 4 points | on HN )
Re:Ask HN: I know Haskell, Clojure, Scheme. Should I learn CL? by tsm on Monday December 12, 2011 @08:49PM (#3345963)
It's an interesting language since it's (obviously) all beautiful and Lispy, and has good support for functional ideas...yet very much encourages a "get it done" approach.

For example, here's something like how a Schemer might implement filter (although this seems long to me...am I missing something?):

    (defun filter (predicate list)
      (if list
          (let ((head (car list))
                (tail (cdr list)))
            (if (funcall predicate head)
                (cons head (filter predicate tail))
                (filter predicate tail)))
          '()))

But realistically, a CLer would probably just use the loop macro:

    (defun filter (predicate list)
      (loop for elem in list
         if (funcall predicate elem)
         collect elem))

So if you're interested in a non-castrated language that very deliberately tries to be practical (if at times inelegant)...it's worth a look. Pick up the book Land of Lisp if you're in a whimsical mood, or Practical Common Lisp if you're not.
Re:Ask HN: I know Haskell, Clojure, Scheme. Should I learn CL? by mooki on Wednesday December 14, 2011 @10:05AM (#3352055)
It's hardly a language that will give you any new revalations in itself (if you already know the ones you mentioned). On the other hand, CL does have some grreeat books. Peter Norvig's and PG's books in particular are fantastic and will make you a better clojure/scheme programmer.

So yeah it's worth it!

Re:Ask HN: I know Haskell, Clojure, Scheme. Should I learn CL? by bdfh42 on Sunday December 11, 2011 @12:07PM (#3340410)
C or one of the derivatives of C would be a great antidote.
Re:Ask HN: I know Haskell, Clojure, Scheme. Should I learn CL? by adrusi on Sunday December 11, 2011 @02:02PM (#3340717)
I know C, java, JavaScript, ruby, python (sorta), etc.
Re:Ask HN: I know Haskell, Clojure, Scheme. Should I learn CL? by adrusi on Sunday December 11, 2011 @02:03PM (#3340718)
but yes, Learning C about a year ago was quite useful for revealing more about how the hardware actually works.