Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Make pipe-first work with uncurried function #108

Closed
sikanhe opened this issue Aug 15, 2020 · 1 comment
Closed

Make pipe-first work with uncurried function #108

sikanhe opened this issue Aug 15, 2020 · 1 comment

Comments

@sikanhe
Copy link

sikanhe commented Aug 15, 2020

Old issue in reason repo: reasonml/reason#2569

cc @yawaramin

@IwanKaramazow
Copy link
Contributor

Moved to rescript-lang/rescript#4629

From a syntax perspective we seem to parse the expected ast:

let f = (. x, y) => x + y
let x = 1->f(. 2)

is the same as

let f = fun [@bs] a b -> a + b
let x = 1 |. f 2 [@bs]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants