-
Notifications
You must be signed in to change notification settings - Fork 335
Closed
Labels
wgslWebGPU Shading Language IssuesWebGPU Shading Language Issues
Milestone
Description
In #569 we debated for a long time which constructs to have between loop
, continuing
,for
, while
.
I do not wish to reopen the question of loop/continuing
. What I'd like to discuss before V1 is the possibility of adding while(e) { s }
as syntactic sugar for for(;e;) { s }
. This would not replace or remove loop/continuing
in any way.
It has the obvious benefits of making the language more familiar and convenient to write for new programmers, while being trivial to implement (being mere sugar for trivial for
loops). And I believe it would match our recent attempts to make the language more convenient with things like #2243, #2492.
kvark
Metadata
Metadata
Assignees
Labels
wgslWebGPU Shading Language IssuesWebGPU Shading Language Issues