Paul Tsnobiladzé 🇫🇷🇬🇪🇺🇦

@tsnobip.bsky.social

@rescript-lang.org core contributor. Fond of geopolitics, space exploration, functional programming, typefaces and music. I know it's a bit eclectic :)

Happy new year! 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 ⬇️

La pollution lumineuse du ciel s'aggrave rapidement. Cela a un impact sur l'astronomie, sur la biodiversité, la santé et la consommation d'énergie. Je suis convaincu qu'on a besoin d'une prise de conscience collective. Pourquoi? Thread👇

Bild

While I love partial applications, automatic partial applications can be quite a fancy footgun when you think you applied the function but actually just created a partially applied function. Explicit partial application really hits the sweet spot!

ReScript@rescript-lang.org · 2y ago

Since v11, ReScript has support for explicit partial application of functions using the "..." syntax at the end of the function call. Partial application of functions is useful in many scenarios, and this explicit syntax makes code easier to read and reason about.

JSX is a 1st class language feature in ReScript. Since v11.1 you've been able to use any createElement-style JSX transform you'd like with ReScript. Image shows Preact, but there are examples in the community even for non-client side fws, like emitting plain HTML server side.

Bild

ReScript ships with native async/await support that also compiles to async/await in JavaScript. 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.

BildBild

We'll ship our new standard library Core by default in v12. 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.

BildBild

We're further closing the syntax gap between ReScript and JavaScript in in v12: - 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!

BildBild

In v12, several new features come together to enable powerful new use cases. 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.

BildBild

swift = hipster ocaml rust = systems ocaml elm = baby ocaml sml = boomer ocaml f# = enterprise ocaml rescript = web ocaml kotlin = jvm ocaml coq = nerd ocaml gleam = shiny ocaml scala = drama ocaml haskell = lazy ocaml just learn ocaml already