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

Non top-level polymorphic type (aka 'a. notation)

$
0
0

Thank you @cwstra :blush:

I learned something interesting here.

So what feels more natural ?

// explicit context object
connect(root, {name: "Alice"})

Or

// B (cwstra idea)
connect.f({name: "Alice"})

Viewing all articles
Browse latest Browse all 2592

Trending Articles