Re: [whatwg/encoding] Define encodeInto() API (#166)

Looks correct to me, but it took me a moment to realize that the algorithm always loops over all tokens and the loop just does not necessarily write all the output. While an early return might be just an optimization, it might make the algorithm more comprehensible.

-- 
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/166#issuecomment-446944831

Received on Thursday, 13 December 2018 12:03:25 UTC