Bug 186073
Summary: | [WSL] "do while" should require a ';' at the end for similarity with C-like languages | ||
---|---|---|---|
Product: | WebKit | Reporter: | Robin Morisset <rmorisset> |
Component: | WebGPU | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED MOVED | ||
Severity: | Normal | CC: | mmaxfield |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 176199 |
Robin Morisset
e.g.
int f() {
int x;
x = 42;
do
x += 3;
while (false)
return x;
}
should be refused.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Myles C. Maxfield
(In reply to Robin Morisset from comment #0)
> e.g.
> int f() {
> int x;
> x = 42;
> do
> x += 3;
> while (false)
> return x;
> }
> should be refused.
What's the reason for this? Why not make it optional?
Myles C. Maxfield
Migrated to https://github.com/gpuweb/WHLSL/issues/118