Re: [swift-users] String Comparisons in Swift

2016-06-02 Thread Erica Sadun via swift-users
> On Jun 2, 2016, at 1:07 PM, John Myers via swift-users > wrote: > > I've had some difficulty comparing string variables to string constants with > ==. I believe it's always after using a readLine(). Does Swift require a > .equals() or a .compareTo(), as other c like languages, or are ther

Re: [swift-users] String Comparisons in Swift

2016-06-02 Thread Austin Zheng via swift-users
You should be able to use ==. Are the lengths of your strings the same length? readLine() has a strip newlines parameter that is true by default. Best, Austin Sent from my iPhone > On Jun 2, 2016, at 12:07 PM, John Myers via swift-users > wrote: > > I've had some difficulty comparing stri

[swift-users] String Comparisons in Swift

2016-06-02 Thread John Myers via swift-users
I've had some difficulty comparing string variables to string constants with ==. I believe it's always after using a readLine(). Does Swift require a .equals() or a .compareTo(), as other c like languages, or are there invisible characters in my string because of the readLine() which I need to st

Re: [swift-users] [Swift 3.0 Preview] Can't Convert to Latest Swift Syntax

2016-06-02 Thread Jens Alfke via swift-users
> On Jun 1, 2016, at 5:32 PM, Jordan Rose via swift-users > wrote: > > The Swift migrator as used in Xcode 7.3 is not open-source, so it’s not > included in the downloadable toolchains. I’m afraid you’ll have to migrate > your project by hand at this point. The compiler should give you some h

Re: [swift-users] Swift 3.0 Preview 1 Snapshots available!

2016-06-02 Thread Jeff Kelley via swift-users
Thanks for the clarification! Jeff Kelley slauncha...@gmail.com | @SlaunchaMan | jeffkelley.org Check out Developing for Apple Watch, Second Edition , no

Re: [swift-users] Swift 3.0 Preview 1 Snapshots available!

2016-06-02 Thread Ted Kremenek via swift-users
Hi Jeff, Unfortunately, there was some significant confusion about the nature of these snapshots, with some people thinking that this was the final build of Preview 1. These are obviously not — they are just snapshots of a branch. To avoid confusion, the download link has been removed until th

Re: [swift-users] Swift 3.0 Preview 1 Snapshots available!

2016-06-02 Thread Jeff Kelley via swift-users
Is it just me, or is there no Swift 3 download on that page? I see a 2.2.1 release branch download but nothing for 3. Jeff Kelley slauncha...@gmail.com | @SlaunchaMan | jeffkelley.org On Tue, May 31, 2016 at 5:42 PM, Mishal Shah via swift-users < swift-users@sw

Re: [swift-users] [Swift 3.0 Preview] Can't Convert to Latest Swift Syntax

2016-06-02 Thread Diego Sánchez via swift-users
Thanks both for answering. I can perfectly do the process manually but it's quite time consuming... I just wanted to know whether I can count on the "convert to latest swift syntax" at some point in the future or start assuming it'll be a manual process (yes with fix-it support). > On 2 Jun 2