Skip to content

Ways around if-then-else #3

@triska

Description

@triska

In some places, the following pattern currently occurs:

Goal -> false

This can always be rewritten to the negation of Goal, if a pure negation is available.

For example:

    (   0 #= N mod D ->
        false

This can be rewritten to:

0 #\= N mod D

This is because (#\=)/2 is true iff (#=)/2 isn't. Importantly, the rewritten version is more general.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions