Reputation: 4513
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?
Upvotes: 0
Views: 579
Reputation: 60084
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.,
#(...)
#A(...)
#S(...)
See
Upvotes: 6