Fond of geopolitics, space exploration, functional programming, typefaces and music.
I know it's a bit eclectic :)
#rescript #signals #ui
#rescript #signals #ui
npm create rescript-app@next
forum.rescript-lang.org/t/ann-rescri...
No more npm link or waiting for an alpha release!
Thank you @aslemammad.bsky.social, @amirsakhravi.bsky.social and the @stackblitz.com team for supporting the ecosystem.
Records is a corner stone in ReScript. However, they can't be nested without explicit definitions. Until now!
Will be especially useful for deeply nested records (like options objects) not intended to be reused.
Check out this new blogpost to get an idea what we did last year.
rescript-lang.org/blog/retreats
youtu.be/yKl2fSdnw7w
Have fun!
rescript-lang.org/try?version=...
Have fun!
rescript-lang.org/try?version=...
We're almost ready to release an exciting editor feature - dot completion everywhere!
"." will now trigger completions for more than just record fields. Example: you'll get completions for pipeable functions from the module of that type.
Examples and videos ⬇️
We're almost ready to release an exciting editor feature - dot completion everywhere!
"." will now trigger completions for more than just record fields. Example: you'll get completions for pipeable functions from the module of that type.
Examples and videos ⬇️
Je suis convaincu qu'on a besoin d'une prise de conscience collective. Pourquoi?
Thread👇
Je suis convaincu qu'on a besoin d'une prise de conscience collective. Pourquoi?
Thread👇
Partial application of functions is useful in many scenarios, and this explicit syntax makes code easier to read and reason about.
A useful JS technique that's important for interop, and lends itself well to some pretty interesting use cases!
Image shows Preact, but there are examples in the community even for non-client side fws, like emitting plain HTML server side.
Image shows Preact, but there are examples in the community even for non-client side fws, like emitting plain HTML server side.
You can pattern match directly on the await, and handle errors in the pattern match as well.
No need to wrap things manually in try/catch, the compiler still emits the right thing.
You can pattern match directly on the await, and handle errors in the pattern match as well.
No need to wrap things manually in try/catch, the compiler still emits the right thing.
It'll produce a warning by default, and it's easy to configure the compiler so that it emits a hard error in for example CI.
Below is compiling a 375k LoC repo using the current build system vs Rewatch.
1. Current build system: 33.8s
2. Rewatch: 12.27s
Speedup by a factor of 2.75 (!) in this example.
Core replaces the current standard lib and most of Belt, with one unified experienced that's built to look and feel more like the JavaScript APIs you're used to, while not sacrificing ergonomics.
Core replaces the current standard lib and most of Belt, with one unified experienced that's built to look and feel more like the JavaScript APIs you're used to, while not sacrificing ergonomics.
- First class regex syntax (previously needed wrapping in %re("<pattern>"))
- Remainder operator
- Use +, -, / and * for any number type, dedicated operators per type not needed
And more coming!
- First class regex syntax (previously needed wrapping in %re("<pattern>"))
- Remainder operator
- Use +, -, / and * for any number type, dedicated operators per type not needed
And more coming!
Even the doc is great, can't wait to try it in my own project!
You can find early documentation rescript-lang.github.io/experimental...
Please try it out and provide feedback via GitHub issues!
Even the doc is great, can't wait to try it in my own project!
This allows you to refine variant types and easily match on a whole subset type without having to enumerate it.
This was always possible with polyvariants, and now also with regular variants.
Here’s @hankgreen.bsky.social’s RSS link bsky.app/profile/hank...
Here’s @hankgreen.bsky.social’s RSS link bsky.app/profile/hank...
Dict pattern matching and with untagged variants make it easy to hand write JSON decoders/encoders with great DX, and also get efficient and readable JS output.
More power, less complexity.
Dict pattern matching and with untagged variants make it easy to hand write JSON decoders/encoders with great DX, and also get efficient and readable JS output.
More power, less complexity.