[Webkit-unassigned] [Bug 234696] [Clang][Win] NotificationData.h(47, 5): error: reference to 'UUID' is ambiguous

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 5 12:53:53 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=234696

--- Comment #8 from Darin Adler <darin at apple.com> ---
OK, but we don’t have consensus on that.


Outside WTF, WebKit coding style absolutely does *not* support adding any identifiers to the global scope.

WTF has an approach where it uses a namespace to avoid link-time conflicts, but it *does* pull identifiers into global scope. Changing that WTF approach would be a *big* deal, and is not going to be decided based on a single identifier or bug. So if you’d like us to move in that direction, it would be good to start the discussion.

As I said we should not try to settle that here, but my first thought is that I think that since we used a short namespace name, WTF, we *could* consider making that change, but it would have far-reaching implications in code style. Writing WTF::String every time instead of just String. But maybe we could get some of the same benefit from importing these names into each of the WebKit namespaces like you did here?

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230405/5fc36d50/attachment.htm>


More information about the webkit-unassigned mailing list