Skip to content
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

New foreign syntax #1052

Open
ospencer opened this issue Dec 7, 2021 · 0 comments · May be fixed by #1873
Open

New foreign syntax #1052

ospencer opened this issue Dec 7, 2021 · 0 comments · May be fixed by #1873
Assignees
Labels

Comments

@ospencer
Copy link
Member

ospencer commented Dec 7, 2021

This work likely won't be done until our module system rewrite. This is what declaring foreign values would look like:

@externalName("wasi_unstable")
foreign module WasiUnstable {
  @externalName("fd_write")
  let fdWrite: annotation
  ...
}

In the future when toplevel wasm imports exist, they would use the toplevel foreign keyword, similar to how it is done now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants