- From: Timothy Gu <notifications@github.com>
- Date: Thu, 03 Jun 2021 20:50:20 -0700
- To: heycam/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 4 June 2021 03:50:53 UTC
For the second advice, would it suffice to say "When designing APIs that take a buffer as input"? For "output parameter" usage, I don't think there's a blanket advice we can give. It depends on what makes sense for the particular application. In the case of Encoding, it's clear (IMO) that Uint8Array makes a lot of sense, while Float32Array makes little sense. Though I suppose one _could_ make an argument for also allowing ArrayBuffers... -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/heycam/webidl/issues/989#issuecomment-854337499
Received on Friday, 4 June 2021 03:50:53 UTC