-
Notifications
You must be signed in to change notification settings - Fork 747
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
Update the text syntax for tuple types #6246
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm % question
@@ -32,7 +32,7 @@ | |||
;; CHECK: (global $field2@Foo (mut anyref) (ref.null none)) | |||
|
|||
;; CHECK: (global $referredField@Foo i32 (i32.const 42)) | |||
(global $referredField@Foo (i32) (i32.const 42)) | |||
(global $referredField@Foo i32 (i32.const 42)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this needed because before it was a tuple of size 1? But I thought we errored on that...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntactically it was a tuple of size one, which should not have been valid, but when we actually try to construct a tuple of size one the type we get back is just the element type, so this ended up Just Working before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks...
Instead of e.g. `(i32 i32)`, use `(tuple i32 i32)`. Having a keyword to introduce the s-expression is more consistent with the rest of the language.
Instead of e.g. `(i32 i32)`, use `(tuple i32 i32)`. Having a keyword to introduce the s-expression is more consistent with the rest of the language.
Instead of e.g.
(i32 i32)
, use(tuple i32 i32)
. Having a keyword tointroduce the s-expression is more consistent with the rest of the language.