Skip to content

Figure out to deal with pipe first vs pipe last libraries #731

@feihong

Description

@feihong

Right now we have the unfortunate situation where pipe last and pipe first modules are all together under Js, e.g. Js.String is pipe last and Js.String2 is pipe first. We could add Js.DataFirst modules that allow you to use pipe first operators while the standard Js modules support pipe last operator as they always have. In your program you can specify your preference for pipe first by adding open Js.DataFirst; to the top of a source file or -open Js.DataFirst in dune file.

This is analagous to StdLabels which allows you to easily swap out normal List functions with versions that use labeled arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions