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: Vote for Experimental Support of Optional Chaining

15 pointsby IvanGoncharovabout 6 years ago

4 comments

fixermarkabout 6 years ago
Clarification: TS team is aware of this feature desire and has a plan to support it (their plan is hinged on an existing standard that is still being locked down for JS; details in <a href="https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;issues&#x2F;16" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Microsoft&#x2F;TypeScript&#x2F;issues&#x2F;16</a>).<p>No real benefit in voting on it now, other than to express your added desire for a thing the TS team already knows people want.
evmarabout 6 years ago
Language design should not be determined by &quot;votes&quot;.
评论 #19284069 未加载
评论 #19287368 未加载
评论 #19292308 未加载
tlackemannabout 6 years ago
It&#x27;s been years since this proposal and everyone keeps arguing over semantics yet I don&#x27;t see any semantics being changed. So what&#x27;s the holdup? I understand constraints and external factors&#x2F;dependencies but this seems like such a trivial change that it boggles me we don&#x27;t have this as a standard feature yet.
Waterluvianabout 6 years ago
Interesting. I think I saw this in Swift? Or c#? I guess in Python this is where EAFP comes in.<p>I definitely hate chains of guards to get at a nested property.
评论 #19284102 未加载
评论 #19284193 未加载
评论 #19285880 未加载
评论 #19284128 未加载