This is practical. It's something you wish for within a couple hours of Swift. let x : SomeThing if condition { x = foo() } else { x = bar() } use(x)
Swift 1.2 and Xcode 6.3 beta
11–20 of 94 posts
Re: Swift 1.2 and Xcode 6.3 beta
#12Why is being logged-in required to view the Release Notes?
Re: Swift 1.2 and Xcode 6.3 beta
#13Re: Swift 1.2 and Xcode 6.3 beta
#14Earlier quoted context omitted.
Because Apple chooses to only give access to betas and their release notes to registered developers.
How does that benefit Apple?
Re: Swift 1.2 and Xcode 6.3 beta
#15Re: Swift 1.2 and Xcode 6.3 beta
#16Re: Swift 1.2 and Xcode 6.3 beta
#17iOS 8.2 beta and 8.3 beta
XCode 6.2 beta and 6.3 beta
How is the release cycle going to work? When will 8.2 and 8.3 come out and which is more stable for Swift work.
Re: Swift 1.2 and Xcode 6.3 beta
#18This might be easily overlooked: optional has been introduced (back-ported?) to Objective-C in the form of nullability annotation!
Re: Swift 1.2 and Xcode 6.3 beta
#19Why is being logged-in required to view the Release Notes?
Re: Swift 1.2 and Xcode 6.3 beta
#20Earlier quoted context omitted.
short of having a language mechanism for doing an 'uninitialized' let, conditional operators could work: let x : Something = condition ? foo() : bar() but yeah, it would be nice to defer initialization of an immutable.
Let's hope you don't have a baz.
let x : Something = outer_conditional ? baz() : conditional ? foo() : bar()