From the signatures of these functions, the obvious difference is that set-macro-character
allows you to set reader macro function for a single character, and set-dispatch-macro-character
allows you to set it for any combination of two characters. Is this the only difference? When do I need to use one instead of another?
Asked
Active
Viewed 424 times
0

Rainer Joswig
- 136,269
- 10
- 221
- 346

OlegTheCat
- 4,443
- 16
- 24
1 Answers
6
set-macro-character
governs
reading objects marked with a single special character, e.g.,
set-dispatch-macro-character
governs reading objects marked with two (or more) characters, e.g.,
- vectors
#(...)
- arrays
#A(...)
- structures
#S(...)
See

sds
- 58,617
- 29
- 161
- 278
-
So, the only difference is that first one allows you to bind reader macro to only a single character, and second one to 2+ characters? – OlegTheCat Jan 16 '19 at 08:25
-
Yes, this is the difference. – sds Jan 16 '19 at 14:29