To allow you to create a loop that reads multiple JSON representations from an input stream and has a clear way to terminate the loop rather than having to catch an exception.
Le sam. 18 janv. 2020 à 23:01, John Cowan <xxxxxx@ccil.org> a écrit :
>
> I propose that if json-reader gets an eof-object before reading any part of a JSON value, that it return the eof-object.
>
> I further propose that if json-stream-reader gets an eof-object in the same circumstances, that it pass 'json-eof and an unspecified value to the caller's procedure.
>
What is the rationale?