News for hackers. Stuff that matters.
Re:From TypeScript to ReScript by greyblake on Wednesday January 12, 2022 @04:30AM (#29904178)
> the use of decorators in even the most basic example

Can we agree that JSX is not a valid JS? So decorators are required indeed to simulate "JSX magic"

> no async/await.

As I mentioned, it's not an really an issue (although I though it will be). At least from my experience.

> You can't have two files with the same name in different folders??

This sucks indeed :)

The problem that those 20% corrupt the value of another 80% :/

Re:From TypeScript to ReScript by MoSattler on Wednesday January 12, 2022 @04:50AM (#29904305)
> Can we agree that JSX is not a valid JS?

Neither is rescript - so why not make jsx a first class citizen?

Re:From TypeScript to ReScript by yawaramin on Wednesday January 12, 2022 @10:53AM (#29908118)
JSX is a first-class citizen in ReScript. No decorators required for JSX. Only required for React component function signature.
Re:From TypeScript to ReScript by greyblake on Wednesday January 12, 2022 @07:09AM (#29905273)
Because a programming language is not a template engine.
Re:From TypeScript to ReScript by scrollaway on Wednesday January 12, 2022 @08:10AM (#29905879)
Neither is jsx. It’s just syntactic sugar for some recursive function calls.