Skip to content

Split low-level bindings from high-level abstractions #10

@michaelsproul

Description

@michaelsproul

I think there's a design tension in the library as it currently exists between providing low-level access to GMP primitives and high-level Rustic abstractions.

I think it could be good to split functionality (either internally or as two separate crates), between:

  • Unsafe FFI bindings to C functions, with gnarly GMP-style names.
  • High-level Rust abstractions with nice names, e.g. Int instead of Mpz, Rational instead of Mpq, etc. No inappropriately low-level methods like Rational::set_f (prefer From, etc).

Happy to help implement this 😄

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