Re: [w3ctag/design-reviews] Response.json() (Issue #741)

Hi again. We looked at this again during a breakout today.

We still think that it's confusing if any static method could be a factory method, and we believe there is value in making this obvious with a naming convention. As an example, we explored ideas such as `Response.from(value, options)` with a dictionary argument whose `type` defaults to `"json"`, which would be equally concise.

However, we see that there is precedent in having factory methods in this API whose names are simple nouns, and we think internal consistency within the API is more important than external consistency with the rest of the Web Platform, so we will go ahead and close this. 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/741#issuecomment-1195596825
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/741/1195596825@github.com>

Received on Tuesday, 26 July 2022 14:59:43 UTC