Skip to content

Implement a proper 'numerical tower' in core or std #4231

Closed
@brendanzab

Description

@brendanzab

I'm not sure how feasible this currently is. We would have to think in terms of compile-time, zero-cost abstractions. On #rust:

erickt: once we get default methods we can make proper mathematical groups, semigroups, rings, and etc

Relevant articles on Wikipedia:

Other things to consider in the same vein are units of measure, range types and mod types. Perhaps these could be implemented via traits and default methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions