学习一个Lisp有助于学习另一个吗? [英] Does learning one Lisp help in learning the other?

查看:112
本文介绍了学习一个Lisp有助于学习另一个吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

学习不同的Lisp语言之间是否有协同作用?我目前正在学习Emacs Lisp,因为它在我的每日Emacs使用中立即有用,但我对所有Lisps很着迷,所以也许有一天我会学习和使用他人。 当我开始挖掘Common Lisp,Scheme或Clojure时,会学习Emacs Lisp吗?换句话说,对我来说,像学习一种全新的语言,或者一些概念和范式是常见的吗?我也对比较Lisps之间的独特差异感兴趣,当我从一个Lisp到另一个时,这将是一个问题。

Is there any synergy between learning different Lisp languages? I'm currently learning Emacs Lisp, as it is immediately useful in my daily Emacs usage, however i'm fascinated with all Lisps, so maybe someday i will learn and use others. Will learning Emacs Lisp help me, when i start digging in Common Lisp, Scheme or Clojure? In other words, will it be for me like learning a completely new language, or some notions and paradigms are common? I'm also interested in comparison of unique differences between the Lisps, which will be a problem, when i come from one Lisp to another.

如何学习Common Lisp和Emacs Lisp?提到会有浪费,但是没有详细说明,到什么程度。

In How to go about learning Common Lisp and Emacs Lisp? it is mentioned that there will be "wastage", but it is not elaborated, to what degree.

推荐答案

- 如果你知道一个新的Lisp

Yes - it is significantly easier to pick up a new Lisp if you know one already.

原因:


  • 数据和以同源语言进行元编程(这可能是使得Lisps独特/独特于其他语言的最大的单一事情)

  • 您将能够更容易地阅读Lisp语法。它需要几个星期,以达到你看到Lisp代码的结构,但在这之后,它变得容易得多。

  • 开发风格类似,使用REPL与正在运行的环境进行交互

  • 他们共享常用的成语,例如使用列表和各种函数式编程技术

  • You'll understand the concept of "code is data" and metaprogramming in a homoiconic language (this is arguably the biggest single thing that makes Lisps unique / distinctive from other languages)
  • You'll be able to read Lisp syntax much more easily. It takes a few weeks to get to the point where you "see" the structure of Lisp code, but after that point it gets much easier. You start to ignore the parentheses after a while.
  • The development style is similar, interacting with a running environment using a REPL
  • They share common idioms, e.g. the use of lists and various functional programming techniques

这篇关于学习一个Lisp有助于学习另一个吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆