W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > June 2018

Re: [webrtc-pc] Can RTCStatsReport use a union type instead of object?

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Jun 2018 07:21:31 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-398650123-1529479290-sysbot+gh@w3.org>
This idea requires keeping an union type that is updated every time a new stats type gets added. That union type would have to live in the webrtc-stats document, or maintenance would be unmanageable.

But it doesn't work anyway, because all these types are dictionaries, and two dictionaries aren't distinguishable enough to be included in the same union type:


GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1905#issuecomment-398650123 using your GitHub account
Received on Wednesday, 20 June 2018 07:21:39 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 6 May 2023 21:19:44 UTC