OlegTheCat
OlegTheCat

Reputation: 4513

What's the difference between set-macro-character and set-dispatch-macro-character?

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

Answers (1)

sds
sds

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.,

See

Upvotes: 6

Related Questions