You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: