WebAssembly / component-model

Repository for design and specification of the Component Model
Other
899 stars 75 forks source link

Question: Specialized value types #319

Open GordonSmith opened 3 months ago

GordonSmith commented 3 months ago

Looking at: https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md?plain=1#L638-L653 it shows that a string should be despecialized to a list<char>, but it is not implemented like that in definitions.py, is that a conflict?

sunfishcode commented 3 months ago

The Canonical ABI uses custom representations for string and flags, rather than using the corresponding generic despecialized types.

I submitted #320 with some documentation which I hope helps here.