Skip to content

assert with body #1434

@gavinking

Description

@gavinking

In #891 it was proposed that we could support stuff like this:

assert (exists length, nonempty sequence, length>0) {
    return null;
}

Even though #891 is now implemented, there may still be value in that. I personally find it to be a more pleasing and more powerful way to write "guards".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions