For something like this: #lang racket (define orig-readtable (current-readtable)) (parameterize ([current-readtable (make-readtable orig-readtable #\( 'terminating-macro (λ (c in src ln col pos) (read-syntax/recursive src in c orig-readtable)))]) (println (read (open-input-string "()"))) ; ’() (println (read (open-input-string "#hash()")))) ; . read: bad syntax `#hash('
I can understand why this could be a problem, but why doesn't it work so that if reading the () produces the correct association list, it still works? Otherwise is there any way around it without just reimplementing #hash(), #hasheq(), #hasheqv(), #(), etc. ? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.