Skip to content

Document upcoming infix operators #160

Closed as not planned
Closed as not planned
@ryyppy

Description

@ryyppy

After lots of discussions, ReScript will add infix operators (see working draft PR) to the language.

The docs for infix operators should go into an advanced section.

  • Usage
  • Note on when to use them

We generally think that infix operators are enjoyed best for arithmetical use-cases, such as +, -, *, / etc. We don't necessarily encourage users to use infix operators to define their own DSLs (aka >>= etc), and highly recommend using plain functions with the -> operator instead.

For the time being, it might be worth creating a placeholder page explaining that infix operators are coming soon? \cc @IwanKaramazow

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions