Skip to content

RFC: Bitwise module in belt #5176

Closed
Closed

Description

@amiralies

The old operators inherited from ocaml are less accessible and somehow hidden from user and the names are not descriptive IMO.
Should we have a lightweight Belt.Bitwise ?

Activity

  1. bobzhang commented on Jun 13, 2021

    @bobzhang
    Member

    Bit wise operations mostly operate on int, shall we add it inside Belt.Int?

  2. amiralies commented on Jun 13, 2021

    @amiralies
    ContributorAuthor

    That's also a good place. do you think it should be better to put them inside a submodule (Belt.Int.Bitwise) or alongside other functions in Belt.Int ?

  3. bobzhang commented on Jun 13, 2021

    @bobzhang
    Member

    I would like to have a flat structure: it is good for future docs generation, nested submodules have perf cost

  4. bobzhang commented on Jun 15, 2021

    @bobzhang
    Member

    Hi, adding bitwise operations into Belt.Int is welcome. We also welcome to move some float operations in Pervasives into Belt.Float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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