Variable references in lisp

前端 未结 7 867
灰色年华
灰色年华 2020-11-29 07:04

Another newbie (Common) LISP question:

Basically in most programming languages there\'s a mean for functions to receive references to variables instead of just value

7条回答
  •  迷失自我
    2020-11-29 07:51

    I think you are missing out on one of the key concepts of functional programming - you are not supposed to change the state of objects once they have been created. Changing something via a reference violates that.

提交回复
热议问题