Skip to content

[mantle primitives] Interface change proposal for logic #121

@leonardt

Description

@leonardt

Right now we have separate primitives Not for invert of a Bit type and Invert for invert of a Bits type. I propose we merge them into a single, polymorphic Invert primitive. This came up when documenting the ~ operator, which needs to dispatch on the type and call the right function.

Is there a strong case for having Not be separate than Invert? The argument for using Invert is that gives us Not for implementation logical not (!). Otherwise, we could use LNot for logical not.

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