Skip to content

remove the cmath module, and remove the redundant layer of wrapper functions #12713

Closed
@thestinger

Description

@thestinger

Rust should expose the full standard C99 math library through the Float trait. The cmath module will then be an implementation detail we don't need to expose. This will allow Rust to move to a specific math library in the future too rather than using the standard C library provided by the OS.

At the moment, a macro is used to generate a whole bunch of wrappers around these functions. This actually makes the code longer, rather than shorter, so I don't see a point in keeping it around.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions