You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should struct member declarations use commas instead of semicolons? #2587
As discussed in the February VF2F. There was more support for switching structure declarations to use commas than semicolons. This issue is to come to a consensus on that proposal.
Example:
struct S {
a : i32,
b : f32
};
struct T {
x : S,
y : vec4<f32>, // optional last comma
}
Reacted by Corentin Wallez, Mehmet Oguz Derin and Dzmitry Malyshau
Activity
greggman commentedon Feb 15, 2022
Just be clear, this matches Rust, right?
mehmetoguzderin commentedon Feb 15, 2022
On top of Rust, there is also the interesting case of ReScript, being OCaml-inspired in its origin, also separating fields with "," rather than ";"
Uses commas to separate struct members intead of semicolons
kdashg commentedon Mar 9, 2022
WGSL meeting minutes 2022-03-08
Uses commas to separate struct members intead of semicolons (#2656)