Re:What's New in Swift [video]
by raglof on Sunday June 19, 2016 @02:37PM
(#11934016)
For those who don't watch the video to know what components Apple has mentioned in the video to partially/fully rewritten to Swift:
* Many parts of Music app
* Many parts of the Dock (rewrote Mission Control, accessibility features, etc)
* Console App new features (e.g. logging)
* Many OS Agents/Daemons
* The new picture-in-picture feature in Sierra
* Xcode features like the new documentation feature
* New Playground app
Re:What's New in Swift [video]
by michaelvoz on Sunday June 19, 2016 @04:55PM
(#11934638)
The one issue I wish they would address is how there is no clean interop between the new java style number types: Float, Double, Int and the CoreGraphics CGFloat et al. Doing
Double(thing.frame.size.height)
Is not /terrible/ but it sure could be cleaner to just pass it in as is and let the compiler make the assumption. Especially since the backing numerical value stays the same.
Re:What's New in Swift [video]
by Alphasite_ on Sunday June 19, 2016 @04:59PM
(#11934650)
Its mostly because CGFloat can be of different sizes (float or double) depending on architecture, so can be assumed to be neither a double nor a float exclusively.
Re:What's New in Swift [video]
by sdegutis on Sunday June 19, 2016 @05:49PM
(#11934858)
Is there a text form (e.g. TL;DR) of this somewhere? Maybe I'm the minority, but it's way easier for me to read text than to watch a video for anything programming-related.
Re:What's New in Swift [video]
by JimDabell on Sunday June 19, 2016 @06:05PM
(#11934931)
I can't agree with C-style for loops being an "often used feature". I've been developing for iOS since 2008 and I've barely used them at all in that entire time, and never with Swift. Both Objective-C and Swift have better options available. The only time you really use C-style for loops is when you're writing C. If you want to write C, then write C. But if you're writing Swift, then write Swift – don't try to write C in Swift.
https://github.com/apple/swift-evolution
The Swift evolution process is a very pleasant surprise for me.
For those not on iOS, Mac OS X or Android, the video can be watched via VLC.
* Many parts of Music app * Many parts of the Dock (rewrote Mission Control, accessibility features, etc) * Console App new features (e.g. logging) * Many OS Agents/Daemons * The new picture-in-picture feature in Sierra * Xcode features like the new documentation feature * New Playground app
Why Apple always have the need to complicate things? Sight...
Double(thing.frame.size.height)
Is not /terrible/ but it sure could be cleaner to just pass it in as is and let the compiler make the assumption. Especially since the backing numerical value stays the same.
In the meantime, the slides are available to download as PDF on Apple's site.
- Implemented proposals for Swift 3
- Accepted proposals which do not have a complete implementation
[1] for(c=0,c<l,c++) ...
is really syntax of the past.