Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow unions of dictionaries with a common base dictionary, in return values #57

Open
jan-ivar opened this issue Sep 2, 2015 · 2 comments
Labels
☕☕ difficulty:medium Hard to fix ⌛⌛⌛ duration:long There goes your week-end

Comments

@jan-ivar
Copy link
Contributor

jan-ivar commented Sep 2, 2015

From w3c/webrtc-pc#275 (comment)

tl;dr: This avoids the temptation to write "snowball" dictionaries for the purpose of return values.

Member name collisions not from inheritance would be a compiler error.

Additional potential (mis?)use-case w3c/mediacapture-main#211 (comment)

@jan-ivar
Copy link
Contributor Author

jan-ivar commented Sep 2, 2015

The common base requirement is artificial I suppose.

@bzbarsky
Copy link
Collaborator

bzbarsky commented Sep 2, 2015

Member name collisions don't have to be a compiler error either, really. As long as the caller can tell what sort of dictionary got returned...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
☕☕ difficulty:medium Hard to fix ⌛⌛⌛ duration:long There goes your week-end
Development

No branches or pull requests

4 participants