[plt-scheme] no #!eof

From: Joe Marshall (jmarshall at alum.mit.edu)
Date: Mon Apr 14 19:37:24 EDT 2008

>
> I imagine there's a good reason I haven't thought of why #!eof is a bad
> idea, but I thought I'd ask in case it's an oversight.

If EOF has a printed representation, what is the reader to do if
it encounters it in a file?

If I write the EOF object to a file, can I write anything after it?
What if I write a list to file that has the EOF object in the middle of
it?

How do I put a literal EOF object in a file so I can write
(define eof-object? (lambda (x) (eq? x '<what goes here?>)))



-- 
~jrm


Posted on the users mailing list.