[swift-users] Is SwiftDoc.org still being updated?

2017-10-17 Thread Nevin Brackett-Rozinsky via swift-users
This might be out of scope for Swift Users, but I was wondering if anyone
knows whether SwiftDoc.org  is still being maintained.
As far as I can tell, it has not been updated for Swift 4 (even under
“nightly build” it doesn’t show, eg. the Numeric protocol).

I have found SwiftDoc to be a highly useful resource, and would love to see
it continue.

Nevin
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


[swift-users] Codable Range in Xcode 9 playground

2017-10-17 Thread Thierry Passeron via swift-users
Hi everyone,

In the process of familiarising myself with Encodable/Decodable protocols I was 
trying to apply it to the Range struct in order to persist a Range in CoreData 
records. However, I seem to hit the wall with it and keep getting errors. This 
happens in the Xcode 9.0.1 playground, not sure which swift version is used if 
it’s 4 or 3.x but anyways, I get “Ambiguous reference to member 
‘encode(_:forKey:)’ on every encode/decode method calls.

extension Range {
  enum CodingKeys : String, CodingKey {
case upperBound
case lowerBound
  }
}

extension Range: Codable {
  
  public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encode(upperBound, forKey: .upperBound)
try container.encode(lowerBound, forKey: .lowerBound)
  }
  
  public init(from decoder: Decoder) throws {
let values = try decoder.container(keyedBy: CodingKeys.self)
self.upperBound = try values.decode(Bound.self, forKey: .upperBound)
self.lowerBound = try values.decode(Bound.self, forKey: .lowerBound)
  }

}

How would one add Codable support to such a struct? I’m feeling it may require 
a bit of “where” clauses in extension because of the Generic aspect of this 
struct but I fail to make the compiler happy.

Any help appreciated.

Best regards,
Thierry


___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] Swift-4.0-release repositories.

2017-10-17 Thread Tim Hawkins via swift-users
Thanks!

On Tue, Oct 17, 2017 at 4:43 PM Mishal Shah  wrote:

> Hi Tim,
>
> You can clone relevant repositories using ./utils/update-checkout script
> in swift repository.
>
> For example:
> ./utils/update-checkout --clone-with-ssh --tag swift-4.0-RELEASE
>
> For more info:
> ./utils/update-checkout --help
>
> Thanks,
> Mishal Shah
>
> On Oct 17, 2017, at 12:57 AM, Tim Hawkins via swift-users <
> swift-users@swift.org> wrote:
>
> How do i check out a complete set of code from all the relevant swift
> repositories that match the the swift-4.0-release?
>
> I can find any docs anywhere that describe how to acquire the code for a
> given release.
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
>
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


Re: [swift-users] Swift-4.0-release repositories.

2017-10-17 Thread Mishal Shah via swift-users
Hi Tim,

You can clone relevant repositories using ./utils/update-checkout script in 
swift repository.

For example:
./utils/update-checkout --clone-with-ssh --tag swift-4.0-RELEASE

For more info: 
./utils/update-checkout --help

Thanks,
Mishal Shah

> On Oct 17, 2017, at 12:57 AM, Tim Hawkins via swift-users 
>  wrote:
> 
> How do i check out a complete set of code from all the relevant swift 
> repositories that match the the swift-4.0-release? 
> 
> I can find any docs anywhere that describe how to acquire the code for a 
> given release. 
> ___
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users


[swift-users] Swift-4.0-release repositories.

2017-10-17 Thread Tim Hawkins via swift-users
How do i check out a complete set of code from all the relevant swift
repositories that match the the swift-4.0-release?

I can find any docs anywhere that describe how to acquire the code for a
given release.
___
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users