3 ms·
If that's a hurdle for you, then you should not use Lisp. Lesson No. 1: Extend the language. Lesson No. 2: develop taste how to best extend the language. Here
by lispm 14y ago
If that's a hurdle for you, then you should not use Lisp. Lesson No. 1: Extend the language. Lesson No. 2: develop taste how to best extend the language.
Here are the five missing lines which made you not use Lisp:
(defun init-hash-table (data &key (test #'eql))
(let ((hash-table (make-hash-table :test test)))
(loop for (key value) in data
do (setf (gethash key hash-table) value))
hash-table))
'why should I have to reprogram my brain to fit the language'
That's wrong. Lisp is for those who want to reprogram the language to enhance the brain. If you feel uncomfortable with that mode, then Lisp is not for you.
- pdonis 14y agoHere are the five missing lines which made you not use Lisp Yes, I know the init-hash-table function is easy to write. I didn't mean to imply that the function was complicated, or that writing it was a "hurdle", or that not having the function was what made me not use Lisp. I wasn't talking about one particular function; I was talking about the general fact that, for the programs that I've been writing, the advantages of Lisp did not, for me, outweigh the disadvantages. Your mileage may vary, of course. Lisp is for those who want to reprogram the language to enhance the brain. This is a valid point. I try to use Python this way as well, and so far I haven't run up against a specific case where its limitations compared to Lisp were enough to push me over the edge. If I were to change my mind at some point, it would be because of some way that I wanted to reprogram Python but couldn't.
- kls 14y agoThat's wrong. Lisp is for those who want to reprogram the language to enhance the brain. If you feel uncomfortable with that mode, then Lisp is not for you. I don't know if I would go so far as to say the poster is wrong for feeling that way, but you are correct, Lisp is fundamentally different, and one should really only embark on learning it, if they want to learn how to do something fundamentally different. If one has the mindset of "why should I change" then they are probably going to miss the profound ah-ha many of us got when leaning a Lisp. They are not wrong for feeling that way, but a Lisp is definitely a bad choice for them and will only frustrate them.
- pdonis 14y agothey are probably going to miss the profound ah-ha many of us got when leaning a Lisp I think I've at least had some sort of "aha" from learning Lisp; it just doesn't necessarily translate into something that's worth the extra investment of using Lisp for the practical programming projects I've encountered thus far. (To be fair, part of that is the relative paucity of good libraries for Lisp implementations, compared to, for example, Python, with its "batteries included" philosophy.) But even when I'm using, say, Python, I am still able to make use of the "aha" in some ways.