Commit Graph

8 Commits

Author SHA1 Message Date
Dave Abrahams
f66a237228 [stdlib] NewArray.swift => NewArray.swift.gyb
It's getting to the point where we need to collapse away the repetition
in the four models of ArrayType.  Step 1 is just integrating the
"gybbing" steps into the testing framework.

Swift SVN r15284
2014-03-20 20:11:50 +00:00
Dave Abrahams
99cfcdc470 [stdlib] Restore NewArray.swift
Leave the part that doesn't crash the compiler intact

Swift SVN r13998
2014-02-17 17:03:15 +00:00
Chris Lattner
36856f7a90 revert this file, it depended on r13984
Swift SVN r13991
2014-02-17 16:24:02 +00:00
Dave Abrahams
cd76c95f19 Generic dispatching prototype
Instead of flailing about trying to find the right combination of tricks
in the standard library code itself, create a separate test file.  This
demonstrates that we have everything we need to implement algorithm
specialization similar to what the C++ standard library does!

Next: moving on to apply the technique...

Swift SVN r13979
2014-02-17 07:12:19 +00:00
Dave Abrahams
eab41e7c5a [stdlib] WIP new array prototype
Swift SVN r13938
2014-02-15 02:04:59 +00:00
Dave Abrahams
82584c714b [stdlib] Remove obsolete prototype
The Container protocol hierarchy (renamed "Collection") has been
completely incorporated into Swift now.

Swift SVN r12064
2014-01-08 20:06:29 +00:00
Dave Abrahams
29bd9c05ae [stdlib] Prototype new protocols for Sequences, Streams, and Containers
These protocols fix a number of problems with the existing system,
among them esoteric naming ("Indexable", "Generator"), the subtlety of
a MultiPassGenerator protocol that refines Generator without adding
any structural requirements, and questions about whether types with
reference semantics even fit into the framework.  Lacks any real
testing; this merely proves that we can compile the protocols and use
them in trivial algorithms.

Swift SVN r10967
2013-12-07 01:56:14 +00:00
Dave Abrahams
4ac8b87b39 [docs/tests] Move prototypes into a dedicated test subdirectory
This code never belonged in docs/ in the first place.  The other
problem was that they'd drift out-of-date, and regressions that were
only going to be caught by this code could slip into the compiler,
e.g. rdar://problem/15525229

Swift SVN r10637
2013-11-21 18:27:44 +00:00