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.

WWDC 2018 What's New in Swift Recap

75 pointsby jtbrownalmost 7 years ago

9 comments

dep_balmost 7 years ago
Yessssss for the allCases property for enums!!!<p>Enums are really the best feature of Swift. I enum all the things everywhere. This is kind of the finishing touch to it.<p>Binary stability would be nice. I do care about the download sizes of my apps. What&#x27;s really missing from the language is a way to add custom tags like @discardableResult @objc to define some kind of property. It&#x27;s such a kludge to set up things like ViewModels while I really would like to have something like:<p><pre><code> @twoWayBinding[username] lazy var username: UILabel = { &#x2F;* etc *&#x2F; }()</code></pre>
评论 #17266406 未加载
jmullalmost 7 years ago
&gt; Swift 5 (Early 2019): &gt; binary compatibility with future Swift releases<p>I bet this doesn&#x27;t really happen, though it probably makes the day when it really happens closer.<p>(I don&#x27;t just mean they might miss the date, but that (1) they miss the date by a lot; and&#x2F;or (2) they drop binary compatibility from Swift 5; and&#x2F;or (3) they claim they&#x27;ve achieved binary compatibility but it doesn&#x27;t out to be true for long, less than 5 years )
评论 #17267937 未加载
评论 #17267010 未加载
selljamherealmost 7 years ago
&gt;&gt;New hashing algorithm<p>&gt;&gt;Hash values vary from run to run (so don’t depend on hash values or order)<p>I must be reading this wrong. One of the requirements for a good hash function is determinism - specifically that any given value in the input space maps to exactly one value in the output space.
评论 #17267391 未加载
评论 #17266372 未加载
评论 #17267037 未加载
评论 #17267923 未加载
评论 #17267198 未加载
asdalmost 7 years ago
Nice set of highlights. It&#x27;s amazing to see how quickly Swift has evolved in four years.
marvel_boyalmost 7 years ago
&quot;Faster builds&quot;<p>How compares with Objective-C compile times?
评论 #17265399 未加载
评论 #17268051 未加载
swyxalmost 7 years ago
has swift made the leap to server side yet? i keep hearing mumblings about that.
评论 #17266183 未加载
评论 #17265286 未加载
评论 #17267818 未加载
ssvssalmost 7 years ago
Is there a plan for c++ Interop in swift. Or have they decided that using the obj-c bridging layer is enough.
评论 #17269733 未加载
评论 #17266844 未加载
st3fanalmost 7 years ago
I hear Firefox compiles twice as fast with the new compiler.
masonicb00malmost 7 years ago
What was bad about arc4random?
评论 #17267865 未加载