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

Tuple access by index (range)

You can do that in userspace today, but with less nice syntax and one function per tuple length. module Tuple = { @get_index external get2: (('a, 'b), int) => 'a = "" @get_index external get3:...

View Article


[RFC] Automatic optional chaining

This basically allows to skip all the nested switch|None cases and focus on the switch|Some cases, in other words, converts the binary tree of switch|option cases into a simpler linear sequence

View Article


Image may be NSFW.
Clik here to view.

Remain consequential in a typescript ecosystem?

Posted this thread on Jul 2022, we are two years ahead now As of Jul 2024 Rescript pushed harder than ever the language design still seems future-proof two new community released saw light + rescript...

View Article

Remain consequential in a typescript ecosystem?

My comment was aimed at TypeScript, sorry if the context wasn’t clear. ReScript started with a fantastic type system and I don’t think TS will ever match it.

View Article

Tuple access by index (range)

Destructuring is sugar. The compiler uses efficient access patterns instead of actual JS destructuring. Tuples are not arrays. They are essentially records without labels, structs with a known layout....

View Article


Image may be NSFW.
Clik here to view.

Remain consequential in a typescript ecosystem?

saulpalv: is there a way we can reduce the capacity gap? One idea is to host a community stream that walks through the compiler’s structure. This can be very enlightening, showing where lexing,...

View Article

Image may be NSFW.
Clik here to view.

Tuple access by index (range)

cometkim: Tuples are not arrays. They are essentially records without labels seems to be the case in Ocaml/Rescript, in contrast to other languages like ts, scala

View Article

Tuple access by index (range)

Think of it as minimalistic anonymous structural record.

View Article


Consistent optional label args syntax

Rescript 10 introduced optional record fields type person = { age: int, name?: string } that syntax was borrowed from typescript/kotlin that makes the optional labeled argument syntax inconsistent let...

View Article


Tuple access by index (range)

I mean this tuple, there may be some language-specific definitions. But again, Tuples in ReScript are not arrays. They use arrays as their target representation.

View Article

Welcome to the ReScript Forum

hello there! i am trying to get input from the command line from nodejs but i can’t seem to make it work.It telling me my type is option<'a> but this function argument is expecting type string...

View Article

Welcome to the ReScript Forum

Probably in your case input is a string type, but you try to switch on it as option.

View Article

Welcome to the ReScript Forum

i just needed to put an option on the input

View Article


[ANN] ReScript v11.1 is out!

hi, any example repo for preact now?

View Article

Applications written in Rescript

Hi, do you know any public/confidential repositories of applications written in Rescript? I mean some more ambitious applications that: present the capabilities and advantages of the Rescript language...

View Article


Applications written in Rescript

I recently seen on Twitter: GitHub - dmtrKovalenko/subtitler: Free on-device web app for audio transcribing and rendering subtitles

View Article

Applications written in Rescript

Also there are some at GitHub - fhammerschmidt/awesome-rescript: A collection of materials about the ReScript programming language and toolchain. And GitHub - pupilfirst/pupilfirst: A learning...

View Article


Image may be NSFW.
Clik here to view.

Applications written in Rescript

Interesting repository! Thanks

View Article

Image may be NSFW.
Clik here to view.

Applications written in Rescript

Here’s a discord bot of mine written in rescript GitHub GitHub - ShenaniganDApp/brightid-discord-bot Contribute to ShenaniganDApp/brightid-discord-bot development by creating an account on GitHub.

View Article

Image may be NSFW.
Clik here to view.

[ANN] rescript-rest - RPC-like client, contract, and server implementation...

ReScript Schema V8 is out Faster, more reliable, more flexible. Full changelog here: https://github.com/DZakh/rescript-schema/releases/tag/v8.0.0 And after a break I’m back working on rescript-rest

View Article
Browsing all 1751 articles
Browse latest View live