On Aug 12, 2014 1:38 PM, "Domenic Denicola" <dome...@domenicdenicola.com>
wrote:
>
> From: whatwg <whatwg-boun...@lists.whatwg.org> on behalf of Brian Kardell
<bkard...@gmail.com>
>
> > console. log(o.responseText);
> > console. log(o.responseText);
>
> This is why I've been advocating for asJSON() and friends to be verbs,
not nouns, i.e. readAsJSON(). Showing how you take an action makes you
think harder about whether the action will be repeatable or not.
>
> (To me, in the context of a stream or a response, "read" is not
repeatable. But others have suggested "consume" as a verb that makes this
clearer, for people who aren't as steeped in the semantics of those
objects.)

Unless I'm misunderstanding though, (you'd certainly know) from Jake's
description it sounds like it's the body  stream that gets used up/requires
cloning, which is why I suggested, just call it that.  If that's wrong then
readAs makes more sense to me.  I agree that it determines how you reason
about things.

Reply via email to