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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Migrating millions of lines of code to TypeScript

65 点作者 joeyespo大约 3 年前

2 条评论

davidatbu大约 3 年前
I absolutely love typescript!<p>But recently, I found out about ReasonML, an ML-family language transpiled to JS that, from a distance, looks like something I&#x27;d like over TS in every aspect except one (third party typings): much more terse algebraic sum types(tagged unions), more terse code in general, incredible compile times, and named arguments[0].<p>To top all of that, &quot;reason-react&quot;[1] claims that &quot;Reason syntax and language features are a better match for React programming patterns&quot;, and I am very inclined to agree already.<p>I&#x27;d <i>love</i> to hear folks&#x27; experience with ReasonML, or pointers to blog posts such as these where companies write up their experience.<p>[0] <a href="https:&#x2F;&#x2F;blog.dubenko.dev&#x2F;typescript-vs-reason&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.dubenko.dev&#x2F;typescript-vs-reason&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;reasonml.github.io&#x2F;reason-react&#x2F;docs&#x2F;en&#x2F;what-and-why" rel="nofollow">https:&#x2F;&#x2F;reasonml.github.io&#x2F;reason-react&#x2F;docs&#x2F;en&#x2F;what-and-why</a>
评论 #31456179 未加载
评论 #31459233 未加载
评论 #31458824 未加载
abdouls大约 3 年前
&gt; 3.7 million lines of code in a single PR<p>Now that&#x27;s crazy! They don&#x27;t seem to be afraid to do major changes in one shot (yes, probably type checked because of typescript - but still, that&#x27;s huge!)