Re: [heycam/webidl] Reduce the restrictions on members whose names match auto-generated properties (#726)

bzbarsky commented on this pull request.



> -named "<code>entries</code>", "<code>forEach</code>",
-"<code>has</code>", "<code>keys</code>",
-"<code>size</code>", or "<code>values</code>",
-or have any [=inherited interfaces=]
-that have [=members=] with these names.
-Read–write setlike interfaces must not
-have any [=attributes=]
-or [=constants=] named
-"<code>add</code>", "<code>clear</code>",
-or "<code>delete</code>", or have any [=inherited interfaces=]
-that have [=attributes=] or [=constants=] with these names.
-
-Note: Operations named "<code>add</code>", "<code>clear</code>",
-or "<code>delete</code>" are allowed on read–write setlike
+Setlike interfaces and their [=inherited interfaces=] must not have any [=regular operations=],
+[=regular attributes=] or [=constants=] named

That is a really good question....  Seems like disallowing it until there's a use case that might want it, and then deciding how it should work, is reasonable...

-- 
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/726#discussion_r284431280

Received on Wednesday, 15 May 2019 20:13:18 UTC