-
Notifications
You must be signed in to change notification settings - Fork 0
Description
As part of Immutable
ArrayBuffer, I think we'll need to consider whether we need an option to concat-to-immutable or is transfering-to-immutable-after-concat good enough.Really want to take the path of least surprise with this.
Originally posted by @jasnell in #2
I very much want to find a way to produce an immutable ArrayBuffer without having to go through a mutable one first and call transferToImmutable.
It may be acceptable to automatically produce an immutable AB if all input buffers are themselves immutable, but this seems like a brittle path, subject to refactoring hazards when the producer of the chunk changes.
Since we are relying on an iterable as first argument, we do have the freedom to use a second (or other) argument to specify options for the buffer to be created.