Closed alexcrichton closed 10 months ago
I've got a PR for an implementation of this when it's ready at https://github.com/bytecodealliance/wasm-tools/pull/1212 which can also serve as a means to evaluate the aesthetics of the change via reading all the changes to tests. (aesthetics improved IMO)
Looks like no disagreement, so merging.
This commit commit is an implementation of #142 where semicolons are now required as delimiters between items in the WIT text format. All items in the WIT format are now delimited with either curly braces (
{}
) or semicolons except for thepackage
statement where it subjectively felt a bit weird to require a semicolon. I've updated the various examples inWIT.md
as an example of the new syntax.My plan on implementing this would be along the lines of:
wit-parser
wit-parser
crate can either or either not require semicolons.wasm-tools
repository to require semicolons.wit-parser
andwasm-tools
, integrating the semicolon-supporting-mode into all existing tools.The hope is to create a period of time where both syntax forms are accepted. This provides a transitionary means from one syntax to the other while proposals are updated. This transitionary period is finite in length, however.
Closes #142