Re: [swift-users] Collection Oddities

2017-02-07 Thread Guillaume Lessard via swift-users
> On 7 févr. 2017, at 21:57, Slava Pestov wrote: > >> >> On Feb 7, 2017, at 8:14 PM, Guillaume Lessard via swift-users >> wrote: >> >> I keep running into weird things with Swift 3 Collections. >> >> A) Collection has its count property defined as

Re: [swift-users] unsafeBitCast to Unimplemented Class

2017-02-07 Thread Saagar Jha via swift-users
Saagar Jha > On Feb 6, 2017, at 10:57 PM, Andrew Trick wrote: > > >> On Feb 6, 2017, at 8:51 PM, Dave Abrahams wrote: >> >> >> on Mon Feb 06 2017, Andrew Trick wrote: >> >>> Is a missing declaration a use case that needs to be supported? >> >> I

Re: [swift-users] Collection Oddities

2017-02-07 Thread Slava Pestov via swift-users
> On Feb 7, 2017, at 8:14 PM, Guillaume Lessard via swift-users > wrote: > > I keep running into weird things with Swift 3 Collections. > > A) Collection has its count property defined as an Int via IndexDistance: > > public protocol Collection : Indexable, Sequence {

[swift-users] Collection Oddities

2017-02-07 Thread Guillaume Lessard via swift-users
I keep running into weird things with Swift 3 Collections. A) Collection has its count property defined as an Int via IndexDistance: public protocol Collection : Indexable, Sequence { associatedtype IndexDistance : SignedInteger = Int // line 182 in Collection.swift public var count:

Re: [swift-users] Airbnb's Swift 3 Migration Blog

2017-02-07 Thread Michael Ilseman via swift-users
> On Feb 7, 2017, at 4:58 PM, Chengyin Liu wrote: > > Thanks for the feedback! > > > This is probably source-compatibility that you want, not necessarily ABI > > compatibility. > > You are right. Thank you for the correction. > > > BTW, are you mixed-source? If so,

Re: [swift-users] Airbnb's Swift 3 Migration Blog

2017-02-07 Thread Chengyin Liu via swift-users
Thanks for the feedback! > This is probably source-compatibility that you want, not necessarily ABI compatibility. You are right. Thank you for the correction. > BTW, are you mixed-source? If so, were you able to try out PCH for bridging headers as identified here:

Re: [swift-users] unsafeBitCast to Unimplemented Class

2017-02-07 Thread Dave Abrahams via swift-users
on Mon Feb 06 2017, Andrew Trick wrote: >> On Feb 6, 2017, at 8:51 PM, Dave Abrahams wrote: >> >> >> on Mon Feb 06 2017, Andrew Trick wrote: >> > >>> Is a missing declaration a use case that needs to be supported? >> >> I couldn't say. >> >>> Wouldn’t it be more

Re: [swift-users] Airbnb's Swift 3 Migration Blog

2017-02-07 Thread Michael Ilseman via swift-users
Comments: > Since the Swift ABI changed between versions 2 and 3, even correct Swift 3 > code that imports Swift 2 libraries will not compile. This incompatibility > made it difficult to parallelize code conversion. This is probably source-compatibility that you want, not necessarily ABI

[swift-users] swiftup: the Swift toolchain installer

2017-02-07 Thread Muhammad Mominul Huque Nahid via swift-users
HI! Its an actually Swift version of swiftenv(https://github.com/kylef/swiftenv). It now can install multiple versions and have the basic facilities of a version manager. Though it is not complete and there are many to improve but worth a try. It only works on Linux for now. It was a project to