TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Migrating millions of lines of code to TypeScript

65 pointsby joeyespoalmost 3 years ago

2 comments

davidatbualmost 3 years ago
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 未加载
abdoulsalmost 3 years ago
&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!)