Skip to content

Make because a statement instead of expression #102

@raffopazzo

Description

@raffopazzo

Currently because is an expression. This allows to have fine-grained control of which subexpression needs which proof, for example f(x because A, y because B) but it complicates compiler internals. For example delta reduction needs to handle nonsensical situations like ({1,2,3} because true)[0]. An alternative approach is to allow an optional because clause at the statement level, for example in return x because y the clause is part of the return statement not the returned expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions