Stream: general

Topic: C++ namespaces vs wasm


view this post on Zulip Soni L. (May 22 2024 at 13:08):

why doesn't wasm have native support for C++ namespaces? name mangling is the worst.

view this post on Zulip Lann Martin (May 22 2024 at 13:20):

You'd still need name mangling for function overloading so might as well use an existing scheme :shrug:

view this post on Zulip Lann Martin (May 22 2024 at 13:21):

Anyway, this is more of a question for e.g. llvm; wasm itself allows arbitrary strings for "symbol" (import) names

view this post on Zulip Soni L. (May 22 2024 at 13:26):

yes, wasm itself allows arbitrary strings.

but only arbitrary strings.

we wish it allowed arrays of strings as names - because that's what namespaces are, ultimately.


Last updated: Dec 23 2024 at 13:07 UTC