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

Best Approach for Generating ReScript Builder Patterns with Custom Attributes

Hello ReScript community, I want to perform code generation on simple types by developing a custom attribute. My goal is to generate the corresponding builder pattern for a given type by adding this...

View Article


Best Approach for Generating ReScript Builder Patterns with Custom Attributes

I often build some functions which will traverse my types at runtime and print them to stdout. So I can run these scripts with node / bun and pipe the output to another file. Here is a very simple...

View Article


Best Approach for Generating ReScript Builder Patterns with Custom Attributes

You could try npx rescript-tools doc MyFiles.res, that will dump typed tree information in JSON format. I will most likely contain the info you need. rescript-tools is included in v12, it is a...

View Article

Best Approach for Generating ReScript Builder Patterns with Custom Attributes

Thanks @nojaf I think this might be the right solution for me.

View Article

Best Approach for Generating ReScript Builder Patterns with Custom Attributes

This is an intriguing solution. Thanks for putting in the time!

View Article


HTML/JSX data-attributes

Hi, is there a plan to fix the JSX data-attributes issue in version 12 (or at all) of ReScript? The documentation only shows nightmarish hacks for adding data attributes (Components and Props | React...

View Article

HTML/JSX data-attributes

Hi. You should be able to achieve a better usage for data attributes with JSX using a generic JSX transformer. For example: module Elements = { let propsToAttrs = props => { let attrs = [] switch...

View Article

HTML/JSX data-attributes

V12 does not have anything extra for this, but it’s an interesting topic and definitely something we should explore if/how we can solve in a good way. We’ve also talked about local-only extensions of...

View Article


Bindings to a JS library with method overloads

I’m wrapping a JS/TS library, and everything works fine until I need to wrap a method that has an optional second argument. It starts like this: module Graphology = { type directedGraph = { addNode:...

View Article


Bindings to a JS library with method overloads

I have worked on my own Graphology bindings for ReScript a while ago and worked out most kinks like supporting node/edge attributes and many iteration methods, etc. Have a look at my repo here GitHub...

View Article

Bindings to a JS library with method overloads

Wow, these bindings look like they would cover everything already! Thank you very much, this is not only going to help directly, but also work as a learning example!

View Article

Image may be NSFW.
Clik here to view.

Bindings to a JS library with method overloads

I have added the docs, unit tests, and examples to my repo. Steal whatever you need from there. It is still on rescript-v12 branch but I plan to merge it to main soon after ReScript 12 is released...

View Article

Image may be NSFW.
Clik here to view.

[ANN] ReScript 12 is out!

ReScript’s third major community-led release has arrived! This milestone wraps up a multi-year push to free the compiler from legacy limitations—and it comes loaded with new features and enhancements....

View Article


Image may be NSFW.
Clik here to view.

[ANN] ReScript 12 is out!

amazing work everybody!

View Article

Image may be NSFW.
Clik here to view.

Bindings to a JS library with method overloads

dsiu: should be pretty soon I think It looks like you were spot on with that prediction!

View Article


Image may be NSFW.
Clik here to view.

Bindings to a JS library with method overloads

Can’t thank you enough! This is huge!

View Article

How can we make contributing to ReScript easier?

Hi folks, ReScript 12 just got released, and a key ingredient in this version was online contributions. However you spin it, none of this would have happened without our passionate contributors. That...

View Article


Tilia is born... still early version, ideas welcome :-)

Hello @gaspard – Your project intrigues me because I have an interest in ReScript and it reminds me of a state management library I love called MobX! I used @fattafatta/rescript-jotai (Bindings for...

View Article

Tilia is born... still early version, ideas welcome :-)

Hello hello !! The project has moved quite a bit since it started with the docs (with code for TypeScript and ReScript) and some advanced features to support BDD and FRP. It has also been running for...

View Article

How can we make contributing to ReScript easier?

Once I wanted to add some types to the core library. Unfortunately it wasn’t enough to change the rescript files - I had to run some scripts to create the completions. I didn’t know that. Well, the CI...

View Article
Browsing all 2592 articles
Browse latest View live