Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Add throwing instructions and funcref equality to Post-MVP #340

Merged
merged 2 commits into from
Nov 16, 2022

Conversation

tlively
Copy link
Member

@tlively tlively commented Nov 15, 2022

Summarizing these post-MVP ideas in the documentation will allow us to close out their corresponding issues.

Closes #208.
Closes #239.

Summarizing these post-MVP ideas in the documentation will allow us to close out their corresponding issues.
@tlively tlively requested a review from rossberg November 15, 2022 22:07

Some language implementers have expressed interest in having throwing versions of operations like `struct.get` to simplify the implementation of e.g. Java's `NullPointerException`. It may be worth investigating what the potential code size or performance benefits of these instructions would be. See [#208](https://github.com/WebAssembly/gc/issues/208) for details and previous discussion.

**Why Post-MVP:** Null checks followed by throws are easily expressible in the MVP, so there is no pressing need to add additional instructions for this pattern.
Copy link
Member

Choose a reason for hiding this comment

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

I would add here that this feature is dependent on the exception proposal.

@tlively tlively merged commit aa71d96 into main Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants