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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Has “You Don't Know JS” Convinced Anyone Not to Go with Typescript?

2 点作者 yellowboxtenant大约 8 年前
Almost finished with the series and two major points I received were:<p>1. Implicit coercion isn&#x27;t all that bad because once you understand it you can leverage it&#x27;s power.<p>2. Javascript pseudo-classes aren&#x27;t worth using because the code is hard to follow and they aren&#x27;t real classes. Using &quot;delegation-oriented design&quot; patterns like Simpson&#x27;s &quot;objects linked to other objects&quot; are more true to the essence of Javascript, and thus should be used.<p>Based on these two points it would make sense that Simpson isn&#x27;t a fan of Typescript, which emphasizes strong types and classes.<p>The thing is...I can&#x27;t remember a time where I really needed implicit coercion. And with Typescript making classes work more like traditional class oriented languages, what&#x27;s the real problem?<p>Am I missing out on leveraging the &quot;full power&quot; of Javascript by choosing Typescript?

暂无评论

暂无评论