Skip to content

Instantly share code, notes, and snippets.

@zhouqiang-cl
Created December 5, 2016 12:04
Show Gist options
  • Save zhouqiang-cl/fc75a39f8d755b006992929cd25676dd to your computer and use it in GitHub Desktop.
Save zhouqiang-cl/fc75a39f8d755b006992929cd25676dd to your computer and use it in GitHub Desktop.
common lisp 的 NIL
描述
在 common lisp 中经常可以看到NIL, NIL 有两个含义
1. boolean 中的 false
2. 空列表
第一种含义在其他语言中(比如 python 是比较符合行为习惯的), 但第二种就少见,
在其他语言中, 一般如果为空列表, 对空列表求值可能为 nil, 而不是 nil 表示空列表
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment