[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Defining a library for mutable byte arrays
- From: Tony Finch <dot@...>
- Date: Mon, 6 Jun 2011 16:43:43 +0100
Dirk Laurie <firstname.lastname@example.org> wrote:
> I can see a possible need for two kinds of byte arrays:
> 1. Mutable strings, with operations rather like the string
> library but modifying the string in-place rather than
> returning a new string.
> 2. Arbitrary length bit patterns, with operations rather
> like the bit32 library but not restricted to 32 bits.
look at Erlang's bit syntax (though it deals with immutable blobs more
like Lua strings).
The bit library functions should probably operate polymorphically on
strings and numbers.
f.anthony.n.finch <email@example.com> http://dotat.at/
Forties, Cromarty, Forth, Tyne, Dogger: Variable, becoming southeast, 3 or 4,
occasionally 5 later in Tyne. Slight or moderate. Mainly fair, rain for a time
in Forties and Dogger. Moderate or good.