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.

Swift should not be the future of iOS, and why TypeScript should.

7 pointsby sbjsalmost 7 years ago

4 comments

chairmanmowalmost 7 years ago
I write Typescript for a living, and stink at swift - I don&#x27;t understand where the author is coming from at all. Does Android support Typescript out of the box? Why shouldn&#x27;t it as well?<p>I bundle thing into cordova and bang, what was once Typescript is now running sort of like a native app. You can make&#x2F;get plugins for cordova that create wrappers for native methods, although I&#x27;m less familiar with that, but pretty sure you can expose things to the JS namespace using those techniques. Even when I&#x27;m running my typescript stuff in the browser, it&#x27;s still getting transpiled before it runs there.<p>Not sure why Apple or Google would want to expose those methods via Typescript, don&#x27;t know why Apple&#x2F;Google would encourage Swift&#x2F;Java developers to use Typescript when using Swift will create apps optimized for the hardware with fewer abstractions in the way.
colonelrascalsalmost 7 years ago
Swift developers seem to like Swift, it ranks 6th in most loved language this year (<a href="https:&#x2F;&#x2F;insights.stackoverflow.com&#x2F;survey&#x2F;2018&#x2F;#technology" rel="nofollow">https:&#x2F;&#x2F;insights.stackoverflow.com&#x2F;survey&#x2F;2018&#x2F;#technology</a>).<p>I really hate that JS seems to be the go-to &quot;alternative&quot; for everything.
评论 #17761644 未加载
stiGGGalmost 7 years ago
I don’t get this article. Should Apple make an ahead of time compiler for Typescript and bridge it to Obj-C? What would be the benefit of using Typescript instead of Swift?
评论 #17763482 未加载
chillacyalmost 7 years ago
Give control of their primary dev language to others? Especially Microsoft? I can’t see Apple doing that.