practicalswift
797b80765f
[gardening] Use the correct base URL ( https://swift.org ) in references to the Swift website
...
Remove all references to the old non-TLS enabled base URL (http://swift.org )
2016-11-20 17:36:03 +01:00
Doug Gregor
f786a9a230
[Standard library] Duplicate subscript requirement in BidirectionalCollection.
...
The BidirectionalCollection protocol has no requirements that mention
the associated type 'SubSequence', which means it cannot be easily
inferred. Duplicate the subscript requirement from Collection into
BidirectionalCollection to aid type witness inference.
2016-11-08 16:11:30 -08:00
Louis D'hauwe
f9cd8b129d
Updated popLast() and removeLast() documentation.
2016-10-18 21:29:01 +02:00
Louis D'hauwe
520d0d2e12
Updated popLast() and removeLast() documentation.
2016-10-18 15:59:19 +02:00
Louis D'hauwe
ad827ccd51
Use code style in documentation for referred functions.
2016-10-18 00:30:42 +02:00
Louis D'hauwe
f1a2f22b17
Improved documentation for removeLast()
2016-10-18 00:21:18 +02:00
Louis D'hauwe
cdbfc4fb45
Improved documentation for popLast() with note about performance versus removeLast()
2016-10-17 23:47:08 +02:00
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Dave Abrahams
5c13e35f29
[stdlib] Suppress noisy warnings
...
We don't have a way yet to say "this is deprecated for users, but let
the stdlib use it without complaining" so we need to do refactoring
shenanigans.
2016-08-28 15:06:42 -07:00
Maxim Moiseev
1faa41246a
[stdlib] Adding radar links to the FIXME(ABI) markers ( #4511 )
2016-08-25 16:50:14 -07:00
Dave Abrahams
8a73f0b98e
[stdlib] Change Indexable deprecation messages
...
It's important to let people know that, in contrast with existing
practice in other frameworks, we really are going to remove the
deprecated API, and soon.
2016-08-08 13:44:41 -07:00
Dave Abrahams
168047d0f0
Deprecate the Indexable protocols
...
Using them is always a mistake; the user should choose the corresponding
Collection protocol instead.
2016-08-07 22:20:27 -07:00
Nate Cook
63a4107c3c
[stdlib] Fix type inference issue for BidirectionalCollection
...
This resolves the issue described in SR-1922, where conformance
to a bidirectional collection gives errors when implemented using
only the minimal protocol requirements.
2016-07-14 00:34:23 -05:00
Dmitri Gribenko
d591f9cf7a
stdlib: remove most uses of @warn_unused_result, which does nothing now
...
I kept the one on sorted(), because that one requires a less trivial
change.
2016-05-19 18:39:39 -07:00
Nate Cook
982e3d09f8
[stdlib] Revise documentation for new indexing model
...
This revises and expands on documentation for the new collection methods
for working with indices and the revised Swift 3 set APIs. In addition,
it includes documentation for the new range types.
2016-05-19 10:16:14 -05:00
Dave Abrahams
0d68b3a4af
[stdlib] Generate RandomAccessCollection defaults
...
The defaults we were generating for Collection and
BidirectionalCollection didn't make any sense, because if you could do
that strideable arithmetic then you essentially had random access.
Instead we constrain the defaults to apply to RandomAccessCollection
where the Indices are a CountableRange.
2016-05-02 11:35:32 -07:00
Dave Abrahams
446657459f
[stdlib] index(...) tests => StdlibCollectionUnittest
...
Moving the ones that can be applied generally into the unit testing
library.
2016-05-01 14:00:24 -07:00
Dave Abrahams
9bee5d182f
[stdlib] location/formLocation => index/formIndex
2016-04-26 17:46:16 -07:00
Dave Abrahams
47a870cc50
[stdlib] Use location/formLocation for all index movement
2016-04-21 17:13:41 -07:00
Max Moiseev
63d3d1a573
[stdlib][swift-3-indexing-model] extensions for Collection and BidirectionalCollection with strideable indexes
2016-04-21 12:14:56 -07:00
Dmitri Gribenko
3e708a9328
Merge commit '8e292daec1bc790c96b5ee39b8d55dadcac6ce1b' into swift-3-indexing-model
2016-04-14 15:10:26 -07:00
Dmitri Gribenko
735f1287b0
Merge remote-tracking branch 'origin/swift-3-indexing-model' into swift-3-indexing-model
2016-04-14 14:10:27 -07:00
Dmitri Gribenko
10697f939f
Merge commit '510f29abf77e202780c11d5f6c7449313c819030' into swift-3-indexing-model
2016-04-14 13:45:27 -07:00
Max Moiseev
37bf02f7da
[stdlib][swift-3-indexing-model] changes in index(_:stepsFrom:limitedBy:)
...
- index(_:stepsFrom:limitedBy:) returns Index?
- formIndex(_:stepsFrom:limitedBy) returns Bool
2016-04-14 11:49:27 -07:00
Nate Cook
f947c7c81c
[New indexing model] Finish documentation revisions
...
- Replaced RandomAccessIndex mentions from Strideable documentation
with stronger guarantees if Stride conforms to Integer.
- Other cleanup and revisions.
2016-04-08 14:04:34 -05:00
Nate Cook
34773e9612
[New indexing model] Revise documentation for collections
...
- Revised outdated descriptions
- Added missing documentation comment blocks
- Added preconditions where possible now that Index: Comparable
2016-04-07 16:53:11 -05:00
Dave Abrahams
94771b4a39
[stdlib] Update indexing model doc comments
...
Also fix some diagnostics
2016-04-06 17:34:00 -07:00
Dave Abrahams
1798fc8f84
[stdlib] Doc comment update WIP
2016-04-05 15:16:13 -07:00
Dave Abrahams
a5c3c63c3d
[stdlib] Indexing model: nix RangeOfStrideable
...
Instead, use CountableRange which is constrained to have a Strideable
Bound whose Stride conforms to Integer.
2016-03-28 17:06:09 -07:00
Dave Abrahams
da5c4036ac
func index(n: IndexDistance, stepsFrom i: Index)
...
M-x findr-query-replace
\<func advance(\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,[
]*\)by \([^(),]*\|[^(),]+([^()]*)[^(),]*\)
func index(\3\2stepsFrom \1
2016-03-28 13:23:04 -07:00
Dave Abrahams
81d3e8ca83
limit: => limitedBy:, pt 2
...
M-x findr-query-replace
\<limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\))\( *\(?:[^ -]\|-[^>]\)\)
limitedBy: \1)\2
2016-03-28 13:12:02 -07:00
Dave Abrahams
4d651f8fc0
limit: => limitedBy:, pt 1
...
M-x findr-query-replace
\(,[
]*\)limit: \([^(),]*\|[^(),]+([^()]*)[^(),]*\)) ->
\1limitedBy limit: \2) ->
2016-03-28 13:03:59 -07:00
Dave Abrahams
01127b32d5
index(n, stepsFrom: i)
...
M-x findr-query-replace
\<advance(\([^:]+?\),\([
]+\)by: *\([^(),]*\|[^(),]+([^()]*)[^(),]*\)\(,\(?:[
]+\)limit: *\(?:[^()]*\|[^()]+([^()]*)[^()]*\)\)?)
index(\3,\2stepsFrom: \1\4)
2016-03-25 17:54:39 -07:00
Dave Abrahams
11259d1d14
[stdlib] indexing model: rename in-place indexing
...
This time, choose something that's at least compliant with the API
guidelines.
2016-03-23 17:16:20 -07:00
Dave Abrahams
8d9e62b274
[stdlib] indexing model: rename next/previous
...
I'm not too satisfied with the names for the updating: versions, but
this is a start.
2016-03-22 17:13:54 -07:00
Dmitri Gribenko
d9a2b45449
New indexing model: tighten requirements on *Collection.Indices
2016-03-22 16:37:21 -07:00
Dmitri Gribenko
55885fb5ed
New indexing model: tighten requirements on SubSequence types
2016-03-22 15:02:45 -07:00
Dmitri Gribenko
ea51ace6b8
New indexing model: generate three DefaultIndices types
...
We need three index types, one for each traversal kind.
2016-03-18 23:03:18 -07:00
Dmitri Gribenko
cec6113d83
New indexing model: replace a wrong range check with a FIXME
2016-03-11 18:06:12 -08:00
Dmitri Gribenko
1854d49dc7
New indexing model: AnySequence and AnyCollection API sketch
2016-03-08 00:14:25 -08:00
Shawn Erickson
371c0f6e68
fixed things flagged in code review
2016-03-07 11:07:22 -08:00
Shawn Erickson
2a69d24688
fleshed out BidirectionalCollection previous(Index) and friends
2016-03-07 09:38:41 -08:00
Dmitri Gribenko
ad1428e1d6
New collection indexing model: removed old index protocols
...
... and started to fix compiler errors.
2016-03-06 01:53:34 -08:00
Shawn Erickson
fe42606062
[stdlib] - WIP moved aspects of ForwardIndex and BidirectionalIndex into their Collection equivalents
2016-03-04 07:40:59 -08:00
Shawn Erickson
5b4ad21ee6
[stdlib] - overlaying new index model on existing Collection
...
This adds a basic aspect of the new indexing model on top of the
existing Collection code in a passive way. Things should continue to
function as before.
2016-02-23 15:25:47 -08:00