News for hackers. Stuff that matters.
Re:Lisp vs Python by mitko on Sunday February 20, 2011 @03:33PM (#2242958)
This is similar to the way I compare Python and Lisp:

Common ground: first class functions, a lot of flexibility, closures

Lisp: macros, performance?

Python: easy to learn by example, readability, batteries included

I use Python day-to-day as I don't really need a macro system that much. I also disagree that Lisp is more elegant - beauty is in the eye of the observer.

Edit: formatting.

Re:Lisp vs Python by euccastro on Sunday February 20, 2011 @04:43PM (#2243201)
Beauty is subjective; elegance less so. Python is the language I've used and use the most, and I'll easily concede that Scheme is more elegant than almost anything else I've seen, and Python hardly even compares. Metaclasses, decorators, 'for'/'while'/'with' statements, etc. etc. In Python they are all good, practical, powerful ideas. In Scheme they're just unnecessary. Scheme is more elegant because it's been a priority in its design. Python aims to be more practical, beginner-friendly and straightforward.
Re:Lisp vs Python by eru on Sunday February 20, 2011 @05:30PM (#2243352)
Try Haskell. It has a strange mix of beautiful elegant core, and lots of (useful) syntactic sugar added on top.
Re:Lisp vs Python by euccastro on Sunday February 20, 2011 @07:16PM (#2243630)
I did try it, but not enough, I guess, to tell the beautiful core you talk about from the rest. So Haskell seemed to me full of elegant ideas, yet less elegant, as a whole, than Scheme.
Re:Lisp vs Python by Locke1689 on Sunday February 20, 2011 @07:32PM (#2243663)
Which Scheme are you talking about? I find the awful type system of base R6RS to be extremely inelegant. Contracts and strong typing make formal reasoning about programs far more powerful, hence more modern Scheme-style languages like Racket.
Re:Lisp vs Python by euccastro on Sunday February 20, 2011 @09:24PM (#2243979)
Good catch. I was talking about R5RS and earlier.