Re: [swift-users] Swift indentation for vim

2017-01-27 Thread Keith Smiley via swift-users
If you're interested in contributing that script to my repo I'm definitely open to it! There are a ton of issues, as you saw with the current script that I just haven't spent the time to try and fix lately, so it would be great to start from a new robust base. -- Keith Smiley On 01/27, Aaron Boh

Re: [swift-users] Why can't we get `URL` equal on the same path?

2016-10-14 Thread Keith Smiley via swift-users
In our case, if we accidentally send a URL from the server with a trailing slash, we want that to be equivalent to one without. But yea, if you're manipulating it you might have more problems! Although in our case we add the slash for the case without it. -- Keith Smiley On 10/14, Jens Alfke wrot

Re: [swift-users] Why can't we get `URL` equal on the same path?

2016-10-14 Thread Keith Smiley via swift-users
FWIW we've overridden URL's equality function in order to get a "more realistic" result. We lowercase everything and compare the scheme, host, port, and query, along with normalizing the path to handle cases where `/` exists in some paths but doesn't in others. This solves this problem as well: ``

Re: [swift-users] Why can't we get `URL` equal on the same path?

2016-10-14 Thread Keith Smiley via swift-users
Just want to mention that there are some differences between `NSURL` and `URL`. Here's an example from the repl: ``` 1> import Foundation 2> NSURL(string: "") $R0: NSURL? = "" { ObjectiveC.NSObject = {} } 3> URL(string: "") $R1: URL? = nil ``` -- Keith Smiley On 10/14, Jens Alfke via swi

Re: [swift-users] Swift Package Manager (SPM) Deployment Target

2016-10-09 Thread Keith Smiley via swift-users
Here's the open bug for this https://bugs.swift.org/browse/SR-2811 -- Keith Smiley On Sun, Oct 9, 2016, at 15:00, Keith Smiley via swift-users wrote: > This seems to work with the swift package tool shipped with Xcode 8, but > not off > of master. It looks like this commit > h

Re: [swift-users] Swift Package Manager (SPM) Deployment Target

2016-10-09 Thread Keith Smiley via swift-users
This seems to work with the swift package tool shipped with Xcode 8, but not off of master. It looks like this commit https://github.com/apple/swift-package-manager/commit/4f1459e387a82e649bb36fb6928e5f52dfb5a67b changed this because now settings are stored in the xcodeproj instead of in a xcconfi

Re: [swift-users] Swift Package Manager (SPM) Deployment Target

2016-09-30 Thread Keith Smiley via swift-users
Here's the PR that allows you to override this from the command line: https://github.com/apple/swift-package-manager/pull/715 -- Keith Smiley On 09/26, Daniel Dunbar via swift-users wrote: > There isn't yet a builtin way to manage this. When generating an Xcode > project, you can use the undocum

Re: [swift-users] How to get Swift 2.3 in command line?

2016-08-10 Thread Keith Smiley via swift-users
You can accomplish this with the `--toolchain` `xcrun` argument. It took a few tries but it seems as though this command works: ``` xcrun --toolchain "com.apple.dt.toolchain.Swift_2_3" swiftc -v ``` I got this identifier from: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.

Re: [swift-users] Will Swift 3.0 be part of the OS

2016-07-28 Thread Keith Smiley via swift-users
ABI stability is no longer happening with Swift 3. See: http://ericasadun.com/2016/05/16/winding-down-swift-3-0-abi-stability-deferred/ -- Keith Smiley > On Jul 28, 2016, at 20:02, Saagar Jha via swift-users > wrote: > > IIRC it will be part of the system once the ABI is stabilized (which it