Closed as not planned
Description
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