Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2592 articles
Browse latest View live

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 Article


Can't open the rescript-lang.org site

Hmm, weird, it works for me, in which country are you?

View Article


Image may be NSFW.
Clik here to view.

Can'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 Article

Can'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 Article

Can't open the rescript-lang.org site

Please try again, we merged the PR that removed the CDN.

View Article


Minimum 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 Article

How 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 Article

Image may be NSFW.
Clik here to view.

Can'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 Article


Error 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 Article


Image may be NSFW.
Clik here to view.

Domain 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 Article

Domain 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 Article

Domain 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 Article

Domain 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 Article


Rescript bindings for Graphql Codegen

Went ahead and polished the repo enough to publish on npm, and added some usage documentation to the repository!

View Article

Switch 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 Article


Domain 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 Article

Domain 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 Article


Image may be NSFW.
Clik here to view.

Domain 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 Article

Image may be NSFW.
Clik here to view.

Domain 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 Article

Domain 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
Browsing all 2592 articles
Browse latest View live