Re: [heycam/webidl] record with arbitrary value types as keys? (#509)

> We'll just have to trust the implementors.

That sounds like asking for interop issues. :(
```webidl
enum RTCQualityLimitationReason {
    "none",
    "cpu",
    "bandwidth",
    "other",
};
dictionary QualityLimitationDurations {
    double none;
    double cpu;
    double bandwidth;
    double other;
}
```
Slightly more work on the spec side (modulo tooling per @domenic), but now implementers can copy/paste.


-- 
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/issues/509#issuecomment-363866852

Received on Wednesday, 7 February 2018 18:38:39 UTC