[racket] "read"ing sets

From: Curtis Dutton (curtdutt at gmail.com)
Date: Thu May 12 13:01:28 EDT 2011

I can "write" a set.

(write (set 1 2 3 4)) => "#<set: 1 2 3 4>"

However when I try to read that...

(with-input-from-string "#<set: 1 2 3 4>" read) =>  read: bad syntax `#<'

Is there a technical reason why sets can't be read just like lists, hashes,
numbers etc? (Other than via serialization)

I'd like to hook into it with a reader extension somehow but the reader
documentation seems a bit terse in that area.

Does anyone know of some good places to look in the source for guidance?

    Curtis Dutton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110512/513c44e9/attachment.html>

Posted on the users mailing list.