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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Swift Programming Language Evolution

175 点作者 rufus42大约 9 年前

16 条评论

twoodfin大约 9 年前
To me, the most interesting empirical result of the Swift language evolution so far is the lack of urgency on language-level concurrency.<p>If they think they can be competitive for years (at the very least vs. Objective-C) with only platform-level concurrency support, it makes me wonder whether concurrency is generally better provided by the platform instead of the language for most needs.<p>Conventional wisdom would have it that for a systems &amp; application language designed in 2014, a good concurrency story would be close to job #1.
评论 #11663163 未加载
评论 #11661962 未加载
评论 #11662881 未加载
评论 #11664354 未加载
Someone1234大约 9 年前
So Swift has been out awhile, what do people think of it? What other language would you compare it to (e.g. C#, C, C++, etc)? What about the libraries are they well laid out?
评论 #11660301 未加载
评论 #11661667 未加载
评论 #11660295 未加载
评论 #11660355 未加载
评论 #11660297 未加载
评论 #11660206 未加载
评论 #11661463 未加载
评论 #11663779 未加载
评论 #11661296 未加载
评论 #11660868 未加载
评论 #11660935 未加载
评论 #11660510 未加载
rezashirazian大约 9 年前
Swift is fun. I&#x27;m having a great time playing around with it. There are some nuances that take some getting used to, but overall, it&#x27;s a powerful, fast and fun language to work with.<p>If you are interested, I have taken on implementing all major design patterns in Swift. I&#x27;ve gone through about 10 of them right now, (7 published on my blog).<p>If you&#x27;ve never worked with Swift but wish to get a feel for it without going through overly simple tutorials, check them out: <a href="https:&#x2F;&#x2F;shirazian.wordpress.com&#x2F;2016&#x2F;04&#x2F;11&#x2F;design-patterns-in-swift&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shirazian.wordpress.com&#x2F;2016&#x2F;04&#x2F;11&#x2F;design-patterns-i...</a>
Karunamon大约 9 年前
Are there any plans in place for locking down the syntax? Major release 3 is coming and developers are still being expected to hit a moving target.<p>One of the nice things about C is that K&amp;R era C is just as valid as C written nowadays, but Swift appears to be going in the opposite direction, every major release adding and removing bits of syntax.<p>As someone unfamiliar with the language, it makes me not want to pick it up, since guides and documentation I read now will be incompatible with the newer release when it happens. Some early toying around during Swift&#x27;s original announcement led to hard-to-debug errors (in part, caused by terribly useless error messages) when trying identical code on newer releases.
评论 #11660375 未加载
评论 #11660354 未加载
评论 #11660259 未加载
评论 #11660577 未加载
b123400大约 9 年前
While the language is nice, I find it hard to work with existing frameworks, given they are designed for a language as dynamic as objective-c. For example, NSError, NSNotification&#x27;s userInfo is a `[AnyObject:AnyObject]`, but its member types are specified in documentation. It would be nice if we can have specific error will typed userInfo. Working with storyboard is the same story, there is no type check for VC and segue because identifier is a string, instead of something like `R.id.view` on android. Working with this kind of API requires lots of casting, I wonder will Apple design Swift-centric API later.
评论 #11663110 未加载
bouiaw大约 9 年前
Quite surprised to see no mention of Kotlin here since both languages are very similar, main difference is Swift is LLVM based while Kotlin run on the JVM and has excellent Java interoperability.<p>See <a href="http:&#x2F;&#x2F;fr.slideshare.net&#x2F;andrzej_sitek&#x2F;swift-and-kotlin-presentation" rel="nofollow">http:&#x2F;&#x2F;fr.slideshare.net&#x2F;andrzej_sitek&#x2F;swift-and-kotlin-pres...</a> for more details ...
ryandev大约 9 年前
I&#x27;ve never understood the fascination with Swift. What&#x27;s wrong with Objective C?
评论 #11660911 未加载
评论 #11661009 未加载
评论 #11660732 未加载
评论 #11660700 未加载
评论 #11661433 未加载
itsbits大约 9 年前
Am I the only one as a JS dev, who find it hard with types &amp; casting in Swift?
评论 #11660803 未加载
评论 #11661091 未加载
tyingq大约 9 年前
Does &quot;will be portable&quot; include any notion of a cross-platform UI?
评论 #11662025 未加载
评论 #11660944 未加载
评论 #11662423 未加载
merb大约 9 年前
It would still be great if everything would be a value.
DonFromWyoming大约 9 年前
The removal of prefix and postfix ++ and -- operators and the removal of C-style for loops are mistakes, IMO.
评论 #11661211 未加载
评论 #11660902 未加载
评论 #11660715 未加载
评论 #11662232 未加载
评论 #11660653 未加载
bitL大约 9 年前
How does Swift compare to D?
dang大约 9 年前
Submitters: Please don&#x27;t rewrite titles to say what you think is important about an article. Cherry-picking a single detail is a form of editorializing, which HN doesn&#x27;t allow in story titles. The guidelines ask you to change titles only when they&#x27;re misleading or linkbait, which wasn&#x27;t the case here.<p>If you think one detail is most important, you&#x27;re welcome to comment on that in the thread. Then your opinion is on the same level as other users&#x27;.<p>(Submitted title was &#x27;Swift 3 will be portable &#x2F; be able to run on more platforms&#x27;.)
评论 #11662574 未加载
评论 #11662454 未加载
astazangasta大约 9 年前
There are too many projects named &#x27;swift&#x27;.
Keyframe大约 9 年前
A bit too late for wider adoption, isn&#x27;t it? Are there examples of similar path to openness?
评论 #11660934 未加载
评论 #11665852 未加载
jsonninja大约 9 年前
Swift is great language and an enormous leap forward in the apple-sphere. I&#x27;d like to see a bigger investment in JavaScript everywhere. I&#x27;d like to see apple make a push to allow writing 100% javascript apps for iOS and mac. I think it could be a huge differentiator for iOS and Mac development and it would bring to Apple the largest developer base out there.
评论 #11664007 未加载
评论 #11662439 未加载