TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

I Switched from TypeScript to ReScript

62 点作者 ronenlh超过 4 年前

7 条评论

joekrill超过 4 年前
I think the best point in the article is this:<p>&gt; ReScript, as with other statically typed functional languages, aims at changing the way code is approached at a fundamental level.<p>We currently have a project written in ReScript and it&#x27;s an absolute nightmare. Most of our stack is JavaScript&#x2F;TypeScript&#x2F;Flow, so no one can just jump in and work on it very easily - they first have to learn ReScript and all of it&#x27;s different concepts, approaches, and nuances (or refresh themselves if they&#x27;ve done that but haven&#x27;t worked on the project in a while). It&#x27;s a HUGE context switch. At least TypeScript is a superset of JavaScript so it&#x27;s very easy to get up to speed on for a JavaScript developer, and switch between.<p>For a side project this is fun. But I would never consider this for a &quot;real-world&quot; project (i.e. something you get paid for). At least not anytime soon. Maybe in a few years if there&#x27;s wider adoption, but that&#x27;s a long way off.
评论 #25846479 未加载
评论 #25854330 未加载
sradman超过 4 年前
&gt; ReScript is not just a rebranding: it’s a ReasonML which freed itself of the yoke of the OCaml ecosystem. By doing so, it forfeited compilation to native code and OCaml library interop, but gained a freer syntax which further resembles JavaScript<p>See also <i>BuckleScript &amp; Reason are now called ReScript</i>:<p><a href="https:&#x2F;&#x2F;rescript-lang.org&#x2F;bucklescript-rebranding" rel="nofollow">https:&#x2F;&#x2F;rescript-lang.org&#x2F;bucklescript-rebranding</a>
评论 #25845867 未加载
评论 #25855803 未加载
fergie超过 4 年前
I was using TypeScript all through 2019. Went back to plain old JavaScript at the beginning of 2020. Still using plain old JavaScript by default, and break out React when I _really_ have to. No regrets, many benefits.
评论 #25845903 未加载
评论 #25850254 未加载
JacksonGariety超过 4 年前
&gt; Simply renaming the file extension won’t work, as the compiler stops completely at type errors.<p>Why did the author think that this would work exactly?
评论 #25846369 未加载
评论 #25848036 未加载
评论 #25856961 未加载
ecmascript超过 4 年前
Why not simply use Javascript? Today it&#x27;s a fine language. You may complain about fatigue etc which I can buy, but Rescript is simply not solving that.
评论 #25846392 未加载
评论 #25845668 未加载
评论 #25847449 未加载
评论 #25847428 未加载
codewithstein超过 4 年前
I&#x27;m actually a fan of JavaScript. Even though TypeScript&#x2F;ReScript might add some cool features, I don&#x27;t feel the urge to switch...
评论 #25856993 未加载
znpy超过 4 年前
So what now, TypeScript is not hipster enought anymore ?