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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why do people use TypeScript

4 点作者 lifeplusplus5 个月前
What ts engine allows like go to reference, parameter prediction, type inferring, auto complete... These are amazing benefits you get is if you have setup jsconfig properly.. however these should have remained in the realm of tooling or library.<p>Problem 1: acrobatics with composing mixing type... I always hated java for complexity it encourages... But java has nothing on TS devs who perform 30 lives of acrobatics for 4 lines of code abc&lt;&lt;Add&gt;,&lt;XYZ&gt; &gt; &amp; Omit.. um you literally have entire oop going on just with types but it looks like composition but it&#x27;s not really...<p>Types are sold as simple tool that will help you catch if send a wrong parameter<p>Problem 2: too many keywords and often colliding<p>Problem 3 : readability very low<p>Problem 4: anti did give

1 comment

pravosleva5 个月前
Explicit better than implicit. Isnt it?
评论 #42509938 未加载