Re: read-textual-bytestring Wolfgang Corcoran-Mathe 14 Oct 2020 21:50 UTC

On 2020-10-14 11:20 -1000, Shiro Kawai wrote:
> No, what I mean is that, when you're writing a generic parser, you read
> #u8, and then you can do...
>   (case (peek-char port)
>      ((#\")  (read-textual-bytestring port))  ;; read #u8"..."
>      ((#\()  (list->bytevector (read port)))   ;; read #u8(...)
>      (else (error ...)))

OK, that makes perfect sense now.  I was thinking of the
read-textual-bytestring parser, which of course doesn't have to deal
with the #u8() form.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>

"Prolonged contact with the computer turns mathematicians into
clerks and vice-versa." --Alan J. Perlis