BinaryEncoding.md currently says The name section may appear only once, and only after the Data section.
The spec currently says: The name section should appear only once in a module, and only after the data section.
This doesn't make sense for modules that don't have a data section at all. What I think the author intended is ..only after all known sections. To me it makes sense that the name section come after all known sections (even ones that are yet to be added) since I could be used to name elements in any of the known sections.
Technically as it stands today the name section only really needs to follow the Function section (since it can only name function) but I think forcing to come after all known sections make the most sense from a forward looking perspective.
BinaryEncoding.md currently says
The name section may appear only once, and only after the Data section.
The spec currently says:
The name section should appear only once in a module, and only after the data section.
This doesn't make sense for modules that don't have a data section at all. What I think the author intended is
..only after all known sections
. To me it makes sense that the name section come after all known sections (even ones that are yet to be added) since I could be used to name elements in any of the known sections.Technically as it stands today the name section only really needs to follow the Function section (since it can only name function) but I think forcing to come after all known sections make the most sense from a forward looking perspective.