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
Fixes#6165
This PR introduces a new surface syntax for partial application of uncurried functions in ReScript. The syntax allows developers to partially apply uncurried functions more easily and concisely using the ... token in argument lists. The implementation includes changes to the parser, grammar, and printer to handle the new syntax properly.
Example:
res
Copy code
let add = (a, b) => a + b
let ptl1 = add(1, ...)
let result = ptl1(2) // result will be 3
This example demonstrates the new syntax for partial application of the uncurried add function.
)
* Add surface syntax for partial application of uncurried functions
Fixes#6165
This PR introduces a new surface syntax for partial application of uncurried functions in ReScript. The syntax allows developers to partially apply uncurried functions more easily and concisely using the ... token in argument lists. The implementation includes changes to the parser, grammar, and printer to handle the new syntax properly.
Example:
res
Copy code
let add = (a, b) => a + b
let ptl1 = add(1, ...)
let result = ptl1(2) // result will be 3
This example demonstrates the new syntax for partial application of the uncurried add function.
* Update CHANGELOG.md
Co-authored-by: Christoph Knittel <ck@cca.io>
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Christoph Knittel <ck@cca.io>
Current placeholder syntax uses attributes:
The text was updated successfully, but these errors were encountered: