W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2014

Re: [whatwg] Fetch: use separate methods instead of one `to` method in FetchBodyStream

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 16 Jun 2014 15:07:37 +0200
Message-ID: <CADnb78gP_XnkcDQ87TuO8y7KztrmCyKKVR-ArsobpsrdMDV5gA@mail.gmail.com>
To: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>
On Mon, Jun 16, 2014 at 3:03 PM, Jussi Kalliokoski
<jussi.kalliokoski@gmail.com> wrote:
> Fair enough. However, I'm curious as to what's the rationale behind having
> it all behind one function as opposed to a function per action?

Multiple methods actually makes it more complex as you'd have to keep
track of which of the various methods has been invoked. It also does
not make it clear conceptually that only one can be used.


-- 
http://annevankesteren.nl/
Received on Monday, 16 June 2014 13:08:03 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:21 UTC