[swift-dev] Where is Collection defined?

2018-01-08 Thread Daryle Walker via swift-dev
I’ve looked around and read through the various Sequence and Collection definition files. AIUI, you don’t have to define both versions of Collection.subscript; the system will automatically define the missing one in terms of the ot

[swift-dev] How does a standard collection know when its storage has to die?

2017-10-25 Thread Daryle Walker via swift-dev
OK, so the standard collections (Array, Set, Dictionary) are value types with remote storage. Since they don’t have de-initializers, how would any reference count get any notification to eventually de-allocate ? Or is the memory leaked? Or is some sort of secret system-provided de-initalizer add

[swift-dev] Project map?

2017-10-09 Thread Daryle Walker via swift-dev
For the Apple/swift git project, is there a map for each section, explaining what it does and where all of its files are? The Xcode project gives dozens of targets and manually inspecting them to figure out what each one does and how they all fit together seems inefficient. For instance, I wa

Re: [swift-dev] How do I start implementing a feature?

2017-08-21 Thread Daryle Walker via swift-dev
> On Aug 21, 2017, at 3:55 PM, David Zarzycki wrote: > > The easiest way to start adding new features to an existing project is by > cribbing from existing features that are sufficiently similar (at least > enough to get started and see what fails to compile after some changes). For > example,

[swift-dev] How do I start implementing a feature?

2017-08-21 Thread Daryle Walker via swift-dev
I downloaded (w/ GitHub Desktop on macOS) a copy of the Swift repository. I ran the build scripts to download the other parts of LLVM, built everything, and created Xcode (9 beta 4) project files. Now how do I actually do a new feature? The number of targets in the Xcode project file is so intim

[swift-dev] Preparing Swift compiler stage reentrancy in preparation for "constexpr"

2017-08-19 Thread Daryle Walker via swift-dev
[I’m not sure which list should cover this.] I once thought of having a “#protocols(SomeTypeOrProtocol)” that was a type alias to a composition of all protocols the given type/protocol conforms to (or “Any” if none). It seems simple, but all current uses of protocols requires explicit mentions