Re: [whatwg/encoding] Rename Encoding's "streams" to "token queues" (#215)

Hmm, so:

1. I think per our IRC conversation it's okay for this to be fully blocking and synchronous. If you need things to be non-blocking and asynchronous, use "in parallel".
2. We're likely not going to rewrite the Encoding standard to not need "prepend" so we need something like list.
3. As currently defined in the Encoding standard, "token" is just another word for Infra's "item". Token being a byte or scalar value are examples, it's not exhaustive.

I think rewriting everything in terms of lists would probably add clarity. I guess the one change we could make is that EOF should be explicitly be pushed into the list so we can "wait" for the list to change when it's empty.

We might also want to define some shorthands for byte list and scalar value list or some such that clarify the types involved.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/pull/215#issuecomment-657518798

Received on Monday, 13 July 2020 12:00:56 UTC