Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1829

Quick migration guide to uncurried mode for PPX maintainers?

$
0
0

So far, the changes I had to make to build examples with the updated ppx can be summarized as follows:

let f = @res.arity(2) (a, b) => a + b // annotate function definitions
let x = @res.uapp f(1, 2)             // annotate function calls

I annotated all the generated function definitions and function calls, and it worked. However, I haven’t fixed the test suit yet and haven’t run any code, so maybe I’ll discover something else.

P.S. In the linked PRs, @res.optional and @res.partial attributes are also mentioned, but I haven’t needed them so far.


Viewing all articles
Browse latest Browse all 1829

Trending Articles