3 ms·
Erm.. I think it's a bit overrated TBH. Don't get me wrong - lisp is quite simply magical (and very ahead of the curve). However, when you look back at code, th
by thrw34234 7y ago
Erm.. I think it's a bit overrated TBH. Don't get me wrong - lisp is quite simply magical (and very ahead of the curve). However, when you look back at code, those written in Python just seem much nicer. The AIMA/PAIP code in Common Lisp, for instance, are ugly as hell, while that in Python (for AIMA) is far far elegant. No doubt this stems, in part, from CL's legacy, but I haven't found things to be much better in Scheme land either.
- pjmlp 7y agoWith the small difference that the code written in CL runs blazing fast versus pure Python.
- garmaine 7y agoThis is a matter of subjective opinion. I see Python code and I think "ew.. this has got 10-20 bugs or mis-handled edge cases I just haven't found yet." Lisp isn't my favorite syntax, but a piece of Lisp code is much less likely to have hidden gotchas.
- esjeon 7y agoPython isn't elegant. It's just more pragmatic and to the point with little waste. Lisp is definitely more elegant, but no one knew (and still don't know) how to tame the beast. We know it's a powerful language, but don't know what school of thought can utilize it safely. That's why Lisp has many horrible messes.
- lispm 7y agoPersonally I think the PAIP code is very well written. The AIMA code probably slightly less. These are pedagogical programs. Actual production code may look different, sometimes very different.
- flavio81 7y ago>those written in Python just seem much nicer >The AIMA/PAIP code in Common Lisp, for instance, are ugly as hell perhaps it just means you are familiar with python, not lisp. I have 3 years of experience with both and let me tell you, there is nothing elegant in Python: there's nothing elegant in having to deal with one-line lambdas, global interpreter lock, 30x-50x longer execution times than Lisp, distinction between statements vs expressions, mutability everywhere, a flaccid OOP system, no interactive development features, and horribly written libraries.