Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Document upcoming infix operators #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ryyppy opened this issue Jan 2, 2021 · 2 comments
Closed

Document upcoming infix operators #160

ryyppy opened this issue Jan 2, 2021 · 2 comments
Labels
Milestone

Comments

@ryyppy
Copy link
Member

ryyppy commented Jan 2, 2021

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

@fhammerschmidt
Copy link
Member

Newer experiment from last year: rescript-lang/rescript#6076

@fhammerschmidt
Copy link
Member

not planned

@fhammerschmidt fhammerschmidt closed this as not planned Won't fix, can't repro, duplicate, stale May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants