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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

TypeScript 2.9 is now available

234 点作者 hamstercat将近 7 年前

10 条评论

camgunz将近 7 年前
Hey I&#x27;ve been enjoying working with TypeScript lately, but when is this bug gonna be fixed: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;issues&#x2F;11375" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;issues&#x2F;11375</a>.<p>You basically can&#x27;t implement iterators while using `strictNullChecks`, and it&#x27;s been broken since at least October 2016 (!)<p>Every time I go to use TS for a personal project I check to see if this is fixed, and for almost two years the answer is no. I am dying here. Should I not be implementing iterators? Does no one use `strictNullChecks`?
评论 #17243270 未加载
评论 #17243351 未加载
评论 #17243866 未加载
stevebmark将近 7 年前
&quot;type hell&quot; seems to be far worse than &quot;dependency hell,&quot; where the open source type definitions you use can have minor inconsistencies with each other, many of which are out of your control, causing lots of useless type errors in any project with even medium complexity. This forces engineers to ignore type errors, defeating the purpose of Typescript entirely.<p>Has anyone had a truly pleasant experience with Typescript in a medium to large project?
评论 #17244495 未加载
评论 #17245662 未加载
评论 #17245125 未加载
评论 #17244520 未加载
评论 #17245179 未加载
评论 #17244521 未加载
arenaninja将近 7 年前
Gotta love the sanity that TypeScript brings to web development, if not for TypeScript I&#x27;d rather write PHP over JS<p>For good measure I recently wrote a blog post on writing your first TypeScript+React application: <a href="https:&#x2F;&#x2F;charmeleon.github.io&#x2F;post&#x2F;react-typescript-tic-tac-toe&#x2F;" rel="nofollow">https:&#x2F;&#x2F;charmeleon.github.io&#x2F;post&#x2F;react-typescript-tic-tac-t...</a>
评论 #17243722 未加载
jhoh将近 7 年前
I&#x27;ve been using TypeScript for around one year now in small to mid sized projects but I feel like I&#x27;m not using a lot of the language&#x27;s features and best practices. Does someone know any good advanced courses (free or paid)?
评论 #17245596 未加载
评论 #17246272 未加载
huy-nguyen将近 7 年前
I hope they will some day implement variadic types: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;issues&#x2F;5453" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;issues&#x2F;5453</a>. Also, the plan for a 3.0 release looks a bit underwhelming: <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;wiki&#x2F;Roadmap#30-july-2018" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;wiki&#x2F;Roadmap#30-july...</a>. Why not call that 2.10?
评论 #17243518 未加载
评论 #17242861 未加载
pininja将近 7 年前
I’m a fan of the “Generic type arguments in JSX elements” - ran into a case where I needed it a few months ago. They’ve always had a workaround, but this is more concise.
评论 #17243288 未加载
knocte将近 7 年前
The only things that put me off about typescript are:<p>a) The lack of a proper &#x27;is&#x27; keyword. The current behaviour around this is mental.<p>b) The unneeded complexity that the recent releases have brought to the typing system.
评论 #17244944 未加载
评论 #17244863 未加载
Too将近 7 年前
Maybe it&#x27;s too early in the morning but i had a really hard time understanding the changes around keyof and mapped types and what it&#x27;s good for. It felt very mathematically academic. Does anyone have real world examples where it&#x27;s useful?
评论 #17246094 未加载
hellofunk将近 7 年前
How does typescript compare to ReasonML?
CrypticOne274将近 7 年前
Great. Got to love breaking changes.
评论 #17243322 未加载