-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename import
in thee case where it isn't an import
#2
Comments
I'm open to collecting more feedback to see if other folks would prefer |
People already familiar with the language may not find these difficult to navigate. But my experience as someone familiar with what module linking is doing, and familiar with core-wasm syntax, but not deeply familiar with module-linking syntax, is that this language is already really abstract and subtle. Some of this is difficult to avoid, such as core-wasm vs. component differences, and the overloading of the leading syntax for "a literal thing", "reference a thing", and "type of a thing". But each additional multi-use keyword on top of that compounds with those. It gets even harder to look up a keyword in the documentation, harder to find other examples using that keyword in the same way, and harder to find one's bearings when jumping into the middle of a piece of code. |
That's a fair point, especially with the more-recent addition of the inline instances, where now you have both |
I agree that the amount of notational overloading is a bit confusing. However, I think |
That said, this very document does call these things "arguments":
|
|
Updated, thanks again! |
In the explainer:
Could we rename the
import
nodes towith
? Ormodulearg
/componentarg
, or so?(import ...)
has a different meaning in a different context. Parsers can disambiguate it, but it's confusing for humans that don't already know their way around.For example:
The text was updated successfully, but these errors were encountered: