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

Why do `.resi` and `.res` files require defining records twice (once in each file)?

$
0
0

pub feels more at home with the let binding, and exists in other ML family languages like Rust: Visibility and privacy - The Rust Reference

export let foo = "bar"

pub let foo = "bar"

And we’re not really exporting from a JS file sense, we’re marking something as public in our module, which I think is a distinction worth making.


Viewing all articles
Browse latest Browse all 2592

Trending Articles