PasteRack.org
Paste # 48735
2015-11-02 23:35:54

Fork as a new paste.

Paste viewed 323 times.


Embed:

  1. #lang racket
  2.  
  3. ; this works
  4. (read (open-input-string "(1 . 2 #;3)"))
  5.  
  6. ; this fails
  7. (parameterize ([current-readtable (make-readtable (current-readtable))])
  8.   (read (open-input-string "(1 . 2 #;3)")))

=>

'(1 . 2)

UNKNOWN::3: read: illegal use of `.'