summaryrefslogtreecommitdiff
path: root/topics/lisp/tips-and-tricks.gmi
blob: 024d865db895f1570632630ba3f921e3ce491848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Defining a scheme sexp comment with a reader macro

=> http://clhs.lisp.se/Body/f_set__1.htm SET-DISPATCH-MACRO-CHARACTER

```
CL-USER(1): (set-dispatch-macro-character #\# #\; (lambda (s c n) c n (read s t nil t) (values)))

CL-USER(2): (+ 3 (+ 2 3) 1)

9
CL-USER(3): (+ 3 #;(+ 2 3) 1)

4
```

Special thanks to Ed Langley on #common-lisp:matrix.org.

## Tags

* type: documentation
* keywords: lisp, scheme, tips, tricks