Stream: wit-bindgen

Topic: wit grammar spec


view this post on Zulip 7sDream (Mar 21 2023 at 12:23):

Just start reading wit grammer spec, and the operator section is

operator ::= '=' | ',' | ':' | ';' | '(' | ')' | '{' | '}' | '<' | '>' | '*' | '->'

But I can't find anywhere we use ; or * in whole spec, are they reserved for some reason?

Repository for design and specification of the Component Model - component-model/WIT.md at main · WebAssembly/component-model

view this post on Zulip Alex Crichton (Mar 21 2023 at 14:39):

Just reserved at this time. The current thinking for wildcard imports is to use *: func() as syntax, and semicolons may be added after statements or similar

view this post on Zulip 7sDream (Mar 21 2023 at 18:13):

Make sense to me. It seems that the standard is still developing rapidly, and there is still some distance from the stable version, but I can't wait to use it!

I think I will use the current version in development and do some small experiments first, thank you!


Last updated: Nov 22 2024 at 17:03 UTC