Sitelet https://github.com/gpuweb/gpuweb/issues/577
Skip to content

[wgsl] Remove "unless" statement #577

Description

@litherum

Every time I see it, regardless of the source programming language, I always have to do mental gymnastics to figure out which situations causes its "then" block to execute.

I'm thinking of something like this:

unless (!a() || b()) { ... }

Most of the time I see it, it actually decreases clarity.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wgslWebGPU Shading Language Issueswgsl resolvedResolved - waiting for a change to the WGSL specification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions