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: WebGPUAssignee: 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    

Description Robin Morisset 2018-05-29 17:01:52 PDT
e.g.
int f() {
    int x;
    x = 42;
    do
      x += 3;
    while (false)
    return x;
}
should be refused.
Comment 1 Myles C. Maxfield 2018-08-15 22:56:04 PDT
(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?
Comment 2 Myles C. Maxfield 2018-10-13 15:53:48 PDT
Migrated to https://github.com/gpuweb/WHLSL/issues/118