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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Is Swift production-ready?

5 点作者 dmur超过 10 年前
I&#x27;m curious to hear which companies&#x2F;developers out there are already using Swift in their production apps. I&#x27;m also seeking general opinions on how production-ready the language&#x2F;toolbelt is, coming out of 1.0.<p>For me, it still feels very early to use Swift for a large-scale app. I&#x27;ve found in my own usage that many of the niceties of the language are offset by painful workarounds to make Objective-C APIs play ball. E.g. computing a random CGFloat within a CGFloat range<p>On the other hand, it seems obvious that Swift is the future of Cocoa development. And I&#x27;m reasonably confident that many of the current issues will be addressed within the next year.

3 条评论

SamReidHughes超过 10 年前
It&#x27;s based on Clang, right? At version 1.0, you can expect some stability, right? (I haven&#x27;t been paying attention enough to know.) The people working on it are smart, right? (They are, and they&#x27;re somewhat grizzled, extrapolating from the ones I know of.) I wouldn&#x27;t worry about them pulling the language out from underneath you with backwards-incompatible changes -- the compiler crashing on valid code is annoying, and saying this from a no-longer-writing-iPhone-apps perspective, I think it&#x27;s a big win over Objective C. So I&#x27;d go for it.
fidanov超过 10 年前
It probably depends on your project. For a smaller app you can probably start using it without any disadvantages, but I see that some larger apps have problems with it, especially during slow compilation times and bad xcode 6 support. Check this out:<p><a href="http://swiftopinions.wordpress.com/2014/09/13/swift-1-0-some-caution-recommended/" rel="nofollow">http:&#x2F;&#x2F;swiftopinions.wordpress.com&#x2F;2014&#x2F;09&#x2F;13&#x2F;swift-1-0-some...</a>
alekh88超过 10 年前
I work as a developer in US startup which creates medical apps. We have started using SWIFT.It has been fun and equally challenging to work. But I think swift is future and you should not have any second opinion about using swift in production app