Re: [w3c/ServiceWorker] service worker client definition is redundant (#1046)

>  isn't it more straightforward to just say "a service worker client is an environment [that...]"?

I'm not sure if we can assume that kind of a polymorphic behavior in the spec language.

I'm actually curious if we can make a service worker client just be a type alias to the environment (i.e the base type) and use it to dynamically reference the states depending on the actual type (either environment or environment settings object) in runtime. @annevk, @domenic, would it make sense?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1046#issuecomment-270052370

Received on Tuesday, 3 January 2017 05:00:31 UTC