How to go about learning Common Lisp and Emacs Lisp?
The last few months I've been using Emacs extensively as my main development environment and I've now come to a point at which I'd like to learn it's own Emacs Lisp to write my own little stuff for Emacs and extend it to my personal needs.
Having said that I've also wanted to learn Common Lisp for a while now, to play around with and explore a new language. My question is, where should I start from? Will Emacs Lisp give me the necessary knowledge to pick up Common Lisp later more easily or the other way round? I'm basically interested in the efficiency of each path so as to minimize the learning curve when I finally decide to move from one dialect to the other.
Start with Emacs Lisp (given that you seem to have already started customizing your emacs) - it seems to be more immediately useful for you.
Do keep in mind that there is quite a bit of difference between Emacs Lisp (there is a lot of buffer management stuff, especially in the code you're likely to see in the wild) and Common Lisp (more similar to a general purpose programming language), so which ever route you take, expect some amount of "wastage"
I assume you searched SO before posting and saw the questions "What's the best way to learn LISP?" and possibly "Tips for Learning Elisp". Those are two good starting points for how to learn either one.
As far as which one to learn first, it all depends on what you want to do. If you have an idea for a project that interests you, then use the appropriate lisp to solve that. For example, if you want to add/change some functionality in your development environment, use emacs lisp. Otherwise (if it's not editor related), use common lisp.
For me, it's all about finding a project that interests you, and using that to guide which language to use.
They're each close enough that becoming familiar with one will make using the other straight forward. Emacs lisp has a lot of domain specific features (buffers, regions, text properties, files, sub-processes, etc.), and common lisp has a wide varieties of libraries to use.
这可能很有用:Common Lisp,Scheme,Clojure和Emacs Lisp的比较。
链接地址: http://www.djcxy.com/p/66218.html上一篇: 当我尝试安装auto时出现错误