Skip to content

Immutable ArrayBuffer #4

@mhofman

Description

@mhofman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions