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.

TypeScript 2.9 is now available

234 pointsby hamstercatalmost 7 years ago

10 comments

camgunzalmost 7 years ago
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 未加载
stevebmarkalmost 7 years ago
&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 未加载
arenaninjaalmost 7 years ago
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 未加载
jhohalmost 7 years ago
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-nguyenalmost 7 years ago
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 未加载
pininjaalmost 7 years ago
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 未加载
knoctealmost 7 years ago
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 未加载
Tooalmost 7 years ago
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 未加载
hellofunkalmost 7 years ago
How does typescript compare to ReasonML?
CrypticOne274almost 7 years ago
Great. Got to love breaking changes.
评论 #17243322 未加载