Skip to content

make @mulAdd support integers, comptime integers, and comptime floats, and no explicit type parameter #3321

Open
@andrewrk

Description

@andrewrk

I propose to make @mulAdd more like the rest of the math operators built into the language, such as +. This would use Peer Type Resolution to chose a type, just like if you did a + b (except there are 3 values instead of 2).

I see no reason to limit this to floats; it should work just fine for integers too. This will make it more friendly in generic code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.proposalThis issue suggests modifications. If it also has the "accepted" label then it is planned.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions