[swift-dev] Building Static Binaries and Libs

2016-09-05 Thread Joel Hughes via swift-dev
Hello, I hope that this is the right channel for this type of question? I've previously asked in swift-users about building a static binary, on Linux, using: swift build -Xswiftc -static-stdlib It works for simple programs but fails on those importing Foundation. I was pointed at this bug/feat

[swift-dev] TWISt-shout Newsletter 2016-09-05

2016-09-05 Thread Kenny Leung via swift-dev
Here is your TWISt-shout Newsletter for the week of 2016-08-29 to 2016-09-04 https://github.com/pepperdog/TWISt-shout/blob/master/2016/TWISt-shout-2016-09-05.md Enjoy! -Kenny ___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mai

Re: [swift-dev] Building Static Binaries and Libs

2016-09-05 Thread Daniel Dunbar via swift-dev
> On Sep 5, 2016, at 4:13 AM, Joel Hughes via swift-dev > wrote: > > Hello, > > I hope that this is the right channel for this type of question? > > I've previously asked in swift-users about building a static binary, on > Linux, using: > > swift build -Xswiftc -static-stdlib > > It works

[swift-dev] Implementation of Type Erasers

2016-09-05 Thread Chris Eidhof via swift-dev
Hello swift-dev, I was wondering why type erasers (e.g. for AnyIterator) are implemented the way they are. I would implement AnyIterator like this: final class MyAnyIterator: IteratorProtocol { var nextImpl: () -> A? init(iterator: I) where I.Element == A { var copy = iterator

Re: [swift-dev] Implementation of Type Erasers

2016-09-05 Thread Dmitri Gribenko via swift-dev
On Mon, Sep 5, 2016 at 11:13 AM, Chris Eidhof via swift-dev wrote: > Hello swift-dev, > > I was wondering why type erasers (e.g. for AnyIterator) are implemented the > way they are. I would implement AnyIterator like this: > > final class MyAnyIterator: IteratorProtocol { > var nextImpl: () ->