Re: [heycam/webidl] Add namespaces (#121)

> @@ -8661,15 +8786,15 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
>  
>  <span class='comment'>// MathUtils is available for use in workers and on the main thread.</span>
>  [Exposed=(Window,Worker)]
> -interface MathUtils {
> +namespace MathUtils {
>    static double someComplicatedFunction(double x, double y);
>  };
>  
>  <span class='comment'>// WorkerUtils is only available in workers.  Evaluating WorkerUtils
>  // in the global scope of a worker would give you its interface object, while

Talking about an "interface object" for a namespace seems a bit odd.

I think you should probably leave these as interfaces, or add interface examples in addition to namespace ones or something.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/121/files/70ba6d9c213e2b05cf0d8b3ebd14ce9a4583f4c6#r63188735

Received on Friday, 13 May 2016 14:11:20 UTC