ReScript @rescript-lang.org · Nov 29

In ReScript, pipes are normally used for chaining fn calls instead of method chaining with dots like in JS. This is a common gotcha for JS/TS devs who come to ReScript. To ease the transition we're experimenting with letting the editor tooling complete pipes also via dots.

22 likes 1 replies

?

Replies

ReScript · Nov 29

A pipe is of course still inserted in the code. We think this is going to make it much easier as a new comer to ReScript to connect the dots (no pun intended) of the JS/TS way (using dots for method chaining) and the ReScript way (using pipes to chain any function).