ReScript @rescript-lang.org · Nov 28

In ReScript you can put expressions almost anywhere. Assign expressions to variables, put them anywhere in JSX, put them directly into function arguments, etc. Massive readability and productivity boosters, and you'll love it if you haven't written in a language with it before.

14 likes 2 replies

?

Replies

Horia Dragomir · Nov 28

As your code grows, having most things colocated makes it so convenient to break off into new components as opposed to chasing down all the variables

ReScript · Nov 28

Co-locating logic to where it's used, and not having to precompute it in a variable or use an IIFE to co-locate, is usually something new comers appreciate the most in ReScript. Co-location makes code easier to read, maintain and reason about.