Skip to content

Principal Types: Add signature interop #7777

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

Merged
merged 4 commits into from
Aug 4, 2025
Merged

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 1, 2025

No description provided.

@kripken kripken requested a review from tlively August 1, 2025 22:55
Comment on lines 133 to 134
// Flip the params and results.
void flip() {
Copy link
Member

Choose a reason for hiding this comment

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

In general there's no guarantee that this produces a valid principal type because the order in which variables must be introduced in the parameters does not necessarily match the order in which they're used in the results. What will this be used for?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, right, I was just using this to tinker with some stuff that happens to not have variables (the tinkering failed and I don't need it). I'll remove this part then.

@tlively
Copy link
Member

tlively commented Aug 4, 2025

It might be worth adding some quick unit tests, but not critical.

@kripken
Copy link
Member Author

kripken commented Aug 4, 2025

Tests added.

@kripken kripken merged commit d752025 into WebAssembly:main Aug 4, 2025
16 checks passed
@kripken kripken deleted the pt.sig branch August 4, 2025 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants