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

For clarity in examples avoid importing/exporting functions of the same name #6211

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

ratmice
Copy link
Contributor

@ratmice ratmice commented Apr 14, 2023

As someone with barely any experience with wasm, reading through the docs and following along with the examples,
The examples which this patch modifies, both import a function hello from the host, and export one named hello from wat.

To someone looking at it for the first time, it is quite confusing which instance the string 'hello' is referring to which function.
This renames one the "host" one to the rather unimaginative host_func.

@ratmice ratmice requested a review from a team as a code owner April 14, 2023 01:34
@ratmice ratmice requested review from alexcrichton and removed request for a team April 14, 2023 01:34
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Apr 14, 2023
@github-actions
Copy link

Subscribe to Label Action

cc @peterhuene

This issue or pull request has been labeled: "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@alexcrichton alexcrichton added this pull request to the merge queue Apr 14, 2023
Merged via the queue into bytecodealliance:main with commit 26f9ce0 Apr 14, 2023
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants