serveez binary type and guile-2.0

Mike Gran <[email protected]> Sat, 13 Aug 2011 13:03:39 -0700 (PDT)
Newsgroups gmane.network.serveez.devel
Message-ID <[email protected]>
Hi-

Really the only remaining Guile-2.x showstopper is the serveez binary type.

For guile-2.0 we could
- have functions that use the binary type use bytevectors instead and
=A0 just not have serveez-binaries when compiled with guile-2.0

- reimplement the serveez-bin type to use bytevectors under the hood
=A0 so that a serveez-bin is interchangeable with a bytevector
- or, keep the current implementation plus add functions to convert
=A0 binary->bytevector and bytevector->binary


If the serveez-binary type is kept, one has to decide what to do with =


reference to string encodings.
- for string->binary and binary->string, we should probably assume that the
=A0 binary is a Latin-1 encoded version of the string, and throw an error
=A0 if the string has non-Latin-1 characters
- this would suggest adding a utf8-binary->string and string->utf8-binary
=A0 function pair as well

Thanks,

Mike