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

How can we make contributing to ReScript easier?

@tsnobip @nojaf I tried to contribute again. Now it started promising. I didn’t have to install any tools to compile ocaml or rust code. Just had to install the devcontainers-cli (I don’t use vscode)....

View Article


Image may be NSFW.
Clik here to view.

Idea I am using to avoid using React.string

I ended up using a custom React extension where string is simply replaced by __ to reduce the visual noise // MyReact.res include React let __ = React.string // Hello.res open MyReact // ......

View Article


Idea I am using to avoid using React.string

Yeah I do the same R.s it saves a few keystrokes.

View Article

How can we make contributing to ReScript easier?

@dkirchhof could you open an issue that describes the problem with make test-analysis, or even better create a PR? It would be ideal if someone who actually uses dev containers could maintain it!

View Article

How can we make contributing to ReScript easier?

I think I got it working. Will create a PR for the rust update.

View Article


Image may be NSFW.
Clik here to view.

How can we make contributing to ReScript easier?

thanks a lot ! If it’s only a matter of rust version, I think upgrading the base image in .devcontainer/Dockerfile should fix it!

View Article

Image may be NSFW.
Clik here to view.

How can we make contributing to ReScript easier?

@dkirchhof I created a PR for this: github.com/rescript-lang/rescript use Rust 2-1-trixie base and OPAM 2.5.0 rescript-lang:master ← rescript-lang:devcontainer-update-rust-opam opened 09:28AM - 20 Jan...

View Article

How can we make contributing to ReScript easier?

Oh great. I just changed the base image to mcr.microsoft.com/devcontainers/rust:2-1-bookworm.

View Article


[ANN] @green-labs/ppx-spice has moved to @mununki/ppx-spice

Hi everyone, The ppx-spice has moved to a new organization. Old package: @green-labs/ppx-spice New package: @mununki/ppx-spice Please update your package.json and rescript.json (or bsconfig.json) to...

View Article


Image may be NSFW.
Clik here to view.

[ANN] @green-labs/ppx-spice has moved to @mununki/ppx-spice

moondaddi: (or bsconfig.json) Please don’t use bsconfig.json folks, this was deprecated in v12 and will no longer work in v13.

View Article

ReScript Bindings Writer Agent + Skills

Hey everyone, I’ve created a Claude Code agent that creates/verifies/updates ReScript bindings for JS/TS libraries. I’ve included it in the rescript plugin here along with some other skills for...

View Article

ReScript Bindings Writer Agent + Skills

Amazing! Do you have any examples of what it has produced?

View Article

Image may be NSFW.
Clik here to view.

ReScript Bindings Writer Agent + Skills

I have a couple examples thus far: Bindings for nuqs https://nuqs.dev/ It output examples and I prompted it for a Demo app and a corresponding typescript demo so it could compare the behavior of each...

View Article


Should ReScript move more towards explicit control flow?

TypeScript doesn’t solve JavaScript’s problem with implicit control flow. For example, any library function (or really any function) might throw an error or do something unexpected. Unless you wrap it...

View Article

Should ReScript move more towards explicit control flow?

We’ve discussed this at times, but there’s no clear consensus in that pursuing something that enforces that specific style of programming makes sense for ReScript. However, there are plenty of things...

View Article


Bindings to a JS library with method overloads

I got around and published the ReScript Graphology bindings to NPM. Have a look if you are interested: https://www.npmjs.com/package/@dsiu/rescript-graphology

View Article

Should ReScript move more towards explicit control flow?

I would be in favour of #1.

View Article


Should ReScript move more towards explicit control flow?

1 and 2 are different problems although there’s some overlap in general. 1 is about rescript code, 2 is about externals. there’s no clear “safe” way to do externals right now (think try in moonbit or...

View Article

Should ReScript move more towards explicit control flow?

I think it should move towards being more explicit, especially as we build out the web APIs. I think you have to have getUnsafe to make things easier sometimes when you know what you are doing, and...

View Article

Should ReScript move more towards explicit control flow?

What you’re describing is really quite easy to do in user land already: module Response = { type t @send external json: t => promise<JSON.t> = "json" } type data = { user: { id: string, }, }...

View Article
Browsing all 2592 articles
Browse latest View live