c#: Fix same name issue in resources#1238
c#: Fix same name issue in resources#1238jsturtevant wants to merge 3 commits intobytecodealliance:mainfrom
Conversation
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
|
Perhaps there could be opt-in mapping per type. |
|
Making C# look differently than wit is not great. Let's keep the problem as localized as possible. |
💯. thanks for the suggestion, I'll see if I can get it working |
|
If we want something that magically always works, we could have |
|
I understand the reasoning for allowing to re-map the name of a type. But that will also add edge cases where you would need to manually remap something if they clash? I would expect the tooling to handle this automatically to not introduce additional hurdles for new users to adopt C# with wasi. @pavelsavara @jsturtevant |
|
I guess other languages also have naming clashes, for example with keywords or with method names that start with numbers. having same rules would help. That said naming something |
|
Keywords are generally handled by escaping the keyword. So it wouldn't directly map to this problem. Yea I wouldn't mind trying to push it to the wit spec if we can get others to agree. |
|
dropping a few more notes here:
|
|
something like I've also raised the issue in the component model WebAssembly/component-model#478 |
|
proposed change to the spec: WebAssembly/component-model#494 |
|
this is now part of the spec: WebAssembly/component-model#494 with a change going into the tooling: bytecodealliance/wasm-tools#2138 |
possible fix for #1232
I am not a huge fan of this but not sure if there is another way
@yowl @silesmo @pavelsavara thoughts?