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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

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

7 点作者 sbjs将近 7 年前

4 条评论

chairmanmow将近 7 年前
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.
colonelrascals将近 7 年前
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 未加载
stiGGG将近 7 年前
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 未加载
chillacy将近 7 年前
Give control of their primary dev language to others? Especially Microsoft? I can’t see Apple doing that.