Re: [heycam/webidl] Does it make sense for an interface mixin to declare [Default] object toJSON()? (#979)

OK, so it sounds like this example could be made clearer by avoiding mixins, since they're just adding indirection.

Duplicate (not overloaded) operations are indeed not allowed, but I was wonder if like constructors this shouldn't be allowed in partials and mixins at all. But since `toJSON` is a regular operation that would be a slightly odd carveout. Also stringifiers are kind of similar and explicitly allowed in mixins.

I ran into this when trying to untangle some things in idlharness.js, but my question is now answered.

-- 
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/979#issuecomment-825871445

Received on Friday, 23 April 2021 19:26:34 UTC