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

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

$
0
0

there’s a solution to this:

Overall it can feel like maintaining both .res and .resi files is cumbersome and implies repeating yourself but in a real world use case, it’s really great, you can immediately see just looking at the modified files in a PR if your API changed or if it’s just internal, etc, it allows to hide internal types and functions, it’s pretty cool.


Viewing all articles
Browse latest Browse all 1787

Trending Articles