Skip to content

Please add non-short-circuit boolean operators |, |=, &, &=, ^, ^=, and ! to the bool type #1080

Closed
@DartBot

Description

@DartBot

This issue was originally filed by [email protected]


example usage:

bool a();
bool b();
return a() | b(); // Want to call b() even if a() returns false.

Second example usage

bool dirty = false; // accumulate dirty bit
dirty |= a();
dirty |= b();
dirty |= c();
return dirty;

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.closed-not-plannedClosed as we don't intend to take action on the reported issuetype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions