+1 on the namespace idea. We started using mozilla::dom::FooBinding::[ConstantName] namespace for constants in bug 792059, so we may also want to change that to dom::binding::Foo::[ConstantName] for consistency sake.
On Thu, Jun 7, 2018 at 1:03 PM, Jeff Gilbert <jgilb...@mozilla.com> wrote: > We have a name conflict under the current system when trying to use > these two classes from the webgpu sketch webidl: > - WebGPUBuffer > - WebGPUBufferBinding > > I'm proposing renaming the generated bindings classes from > dom::FooBinding to dom::binding::Foo. This seems like a reasonable use > of namespaces, and will be immune from naming collisions coming from > webidl. > > Also considered was dom::Foo_Binding. (webidl really shouldn't have > underscores, but technically could!) Talking with bz, > dom::bindings::Foo sounds better to us, though. > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform