Can't open the rescript-lang.org site
It shows an Application error: a client-side exception has occurred (see the browser console for more information). message when opened. I tried visit it from FireFox and Edge.
View ArticleCan't open the rescript-lang.org site
Hmm, weird, it works for me, in which country are you?
View ArticleCan't open the rescript-lang.org site
Known issue. Seems jsdelivr is blocked completely in China? github.com/rescript-association/rescript-lang.org Some workaround for the blocking of jsdelivr. opened 05:50AM - 25 May 22 UTC Mng12345 The...
View ArticleCan't open the rescript-lang.org site
Thanks, I think this is the case, I saw the jsdeliver network request is failed in the developer tools.
View ArticleCan't open the rescript-lang.org site
Please try again, we merged the PR that removed the CDN.
View ArticleMinimum cut code relocation?
Sounds like more of an issue if project organization and less of a problem for a compiler to solve. Do you have any examples that you can share though? I’m curious what provoked this and if there is a...
View ArticleHow to handle the fact that js and js libs are throwing exceptions all over?
Here’s an example function to wrap an external function that might throw an error. let tryCatch = fn => { try { let t = fn() Some(t) } catch { | _ => None } } @module("./foo.mjs") external fn:...
View ArticleCan't open the rescript-lang.org site
Thank for the fixing, now I can open the index page without any special operations to the network!
View ArticleError compiling @rescript/core with Rescript 11
Your example can be fixed by explicitly uncurrying: Console.log("Hello, world!") -Console.log(List.make(~length=1001, 1)->List.reduceReverse(0, (acc, item) => acc + item))...
View ArticleDomain modeling in Rescript - Resources, Patterns?
The ML family of languages are great for modeling thanks to sum types, exhaustive pattern matching etc. However, one aspect that’s still hard to grasp sometimes is modules, and how there are subtle...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Most of the F# code from Wlaschin’s book is more or less applicable to ReScript too. We just don’t have computation expressions or the like. Also we tend to prefer simplicity over DRY, because...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Well, no, I’ve never published anything on the topic in English, but maybe I should. My talk took a lot of inspiration from that book of course so maybe if/when I do a writeup on that topic, I should...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Since before Rescript was Rescript, I have shipped a number of production DDD services in the ReasonML/Bucklescript/Rescript world. Unfortunately, I am not aware of any really great resources. As you...
View ArticleRescript bindings for Graphql Codegen
Went ahead and polished the repo enough to publish on npm, and added some usage documentation to the repository!
View ArticleSwitch path unexpected on optional record with optional fields
I’m switching an an optional value (settings). Settings has some fields which also have optional values. In my desired condition I want to make sure that settings is Some but want any optional fields...
View ArticleDomain modeling in Rescript - Resources, Patterns?
@yawaramin wrote a book a few years ago called “Learn Type-Driven Development”. It was written for ReasonML but it’s closer than F# to ReScript. You’d probably still need another resource for...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Ah these are all very interesting points! I’ll try to study them a bit more, thank you everyone for all the context! simplicity over DRY if you accept just a little bit of code duplication Sounds...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Thank you @fham for the link posted! Really great to see the slides but could only read the code portions Would love to see any new publications on this subject if you make others @hoichi, thanks for...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Yes that’s exactly the type of modeling in question! Would also love to experiment with Rescript on the backend side with DDD / Clean code layers (especially on the edge running multiple instances of...
View ArticleDomain modeling in Rescript - Resources, Patterns?
Oh thank you so much for this book reference! It does look like the later chapters cover these topics (Reusing Code with Many Different Types, Extending Types with New Behavior, Bringing It All...
View Article