Skip to content

Simplify boolean expression #2

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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions