Why is Common Lisp case insensitive?

后端 未结 4 1281
日久生厌
日久生厌 2020-12-09 09:41

Is there an advantage to defining a function like (defun hi () \"Hi!\") and be able to call it by using (hi) or (HI) or (Hi)

4条回答
  •  悲&欢浪女
    2020-12-09 10:22

    By default the reader in CL is case converting, all escaped characters get turned into uppercase. You can customize this behavior with readtable-case. This is because its easy to interface with other languages that follow the same conventions.

提交回复
热议问题