Re: [ServiceWorker] Can we change the body attribute of Request/Response to a method? (#606)

I'd categorize side-effects into the following three groups:

1. Visible to the JS code
1. Invisible to the JS code
    1. (though it depends on platform) Causes something big (IPC, HDD access, tell the socket to receive more data, etc.)
    1. Doesn't causes anything big

I and Horo (Ben also but slightly?) think that it's user friendly that both (1) and (2)-i are given the form of method.

On platforms where `.body` is not (2)-i but (2)-ii, it's strange if `.body` is implemented as a method. https://github.com/slightlyoff/ServiceWorker/issues/606#issuecomment-71054920

As it's just strange, not harmful, I think we should rather cover the demand of platforms where `.body` is (2)-i by making it a method.

Now it looks we are appealing one's perception to each other. Let's finish it and find some landing point...

Even if we add `start()` to the Streams API (https://github.com/whatwg/streams/issues/269) `start()` is (2)-i on some platforms and (2)-ii on some platforms.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/606#issuecomment-71144762

Received on Friday, 23 January 2015 04:04:52 UTC