Skip to content

Simplify boolean expression #2

@pjljvandelaar

Description

@pjljvandelaar

Why not replace

function No_Errors
(WF : in out Wavefile) return Boolean
is (for all Error of WF.Errors => Error = False);

with

   function No_Errors (WF : in out Wavefile) return Boolean is
     (for all Error of WF.Errors => not Error);

Problem detected and solved by Rejuvenation-Ada crate
vote for Rejuvenation-Ada as The 2022 Ada Crate Of The Year

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions