-
-
Notifications
You must be signed in to change notification settings - Fork 34.7k
Open
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.
Description
There was a suggestion by @jasnell to use Uint8Arrays in new APIs over Buffers as well as a weigh-in by @sindresorhus saying it is easier to author cross-platform APIs when using Uint8Arrays.
Here is a context #41553 (comment)
That is, the ask here is that Node.js should prefer Uint8Arrays over Buffers in new APIs.
What does everyone think? Should we stick to Buffer (which is a subclass of Uint8Array as a reminder) or prefer Uint8Arrays over buffers when possible in new APIs?
cc @nodejs/buffer @nodejs/streams
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.discussIssues opened for discussions and feedbacks.Issues opened for discussions and feedbacks.