Could String internalize an ArrayBuffer?

Bergi a.d.bergi at
Mon Dec 7 00:34:09 UTC 2015

Coroutines schrieb:

> What I want is to be able to view a String through a typed array
> without duplicating the memory/contents of that string.

The largest problem I see with this is that strings are immutable while 
typed arrays / buffers do allow indexed write access. So before using 
strings instead of buffers (or efficiently creating buffers from 
strings), we'd need to introduce something like ConstTypedArrays.


More information about the es-discuss mailing list