syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Feature request: Print explicit curried functions in curried syntax

Open amiralies opened this issue 4 years ago • 2 comments

i.e print

let add = x => y => x + y

as it is instead of

let add = (x, y) => x + y

amiralies avatar Aug 27 '21 03:08 amiralies

Yes, this makes sense. We should get this in.

IwanKaramazow avatar Aug 27 '21 20:08 IwanKaramazow

Hmm, I just looked into this and I wonder how we should tackle this. Both forms have the same ast.

IwanKaramazow avatar Sep 06 '21 19:09 IwanKaramazow

The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.

stale[bot] avatar May 28 '23 19:05 stale[bot]