Skip to content

Matching on structured primitives #823

@rtzam

Description

@rtzam
(rewrite
    (Const (rational a b))
    (Mul (Const (rational -1 1)) (Const (rational (* -1 a) b)))
    :when ((< a 0))
    :ruleset builtin-rules)

Hi! It would be super cool to match on the integers inside a rational number as in the above code snippet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:needs discussionNeed more design/conversation on the issue inside or outside a meeting to get to a concrete proposal

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions