William D Clinger scripsit:
> To prevent programmers from rewriting that mess hundreds of
> times, I think the R6RS should provide something like
> get-char-from-binary and lookahead-char-from-binary.
+1
> Alternatively, the lookahead-char and get-char procedures
> could accept an optional transcoder argument; when that
> optional argument is supplied, the first argument would
> have to be a binary input port.
I'm willing to be persuaded on this one, but I think it's
probably unnecessary. Presumably it would be required
if you know there are just N characters here, but not
how many bytes the characters occupy.
> The general silliness and potential inefficiency of that
> code argue for making transduce-bytes and transduce-string
> into standard procedures.
+1
--
John Cowan cowan_at_ccil.org http://ccil.org/~cowan
You cannot enter here. Go back to the abyss prepared for you! Go back!
Fall into the nothingness that awaits you and your Master. Go! --Gandalf
Received on Tue Nov 07 2006 - 12:28:22 UTC