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
320e439f24
[Standard library] Duplicate subscript requirement in RandomAccessCollection.
...
Similar to what we did for BidirectionalCollection, duplicate the
subscript-returning-SubSequence requirement in
RandomAccessCollection.
2016-11-08 16:35:26 -08:00
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Dmitri Gribenko
db945d5110
stdlib: Improve range checking in default implementations for strideable indices
2016-09-15 22:10:54 -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
559092bbf2
[stdlib] Revise stdlib documentation comments
...
- Expand pre-example explanations
- Update documentation for SE-0118
- Removing remaining 'iff' usage
- Revise Array discussion
- Fix formIndex(_:offsetBy) parameter formatting
- Improve index/formIndex(_:offsetBy:(limitedBy:)?) discussion
- Update Quick Look discussions
- Fixes grammar inconsistencies
- Adds parameter / return documentation
- Adds and expands on examples
- Revises AnyObject discussion for new `id` bridging rules
- Revise readLine, print, and assertion functions
- Add missing docs to String index-moving methods
2016-08-05 16:07:46 -05:00
practicalswift
ef4f925977
[gardening] Fix recently introduced typos.
2016-05-21 13:02:00 +02: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
Maxim Moiseev
5fe2a0232e
[stdlib] Introducing MinimalStrideableIndex... ( #2506 )
...
... as well as new test collection types:
`MinimalRandomAccessCollectionWithStrideableIndex` and
`DefaultedRandonAccessCollectionWithStrideableIndex`, to test default
implementation of `index(...)` family of functions provided by the
standard library for the random access collections with strideable
indices.
2016-05-13 11:19:46 -07:00
Dmitri Gribenko
a8f076d7f0
stdlib: use _precondition(), not precondition()
...
precondition(), when used in the standard library, does not respect the
debug/release build setting of the module or application importing the
standard library.
2016-05-12 16:13:41 -07:00
Max Moiseev
4027afa536
[stdlib] fixing the signature of RandomAccessCollection.index(_:offsetBy:limitedBy:) and uncommenting the test
2016-05-11 17:27:49 -07:00
Roman Levenstein
4544cd196e
Fix an off-by-one error in the condition of the index method.
2016-05-03 17:07:06 -07: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
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
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
Dave Abrahams
94771b4a39
[stdlib] Update indexing model doc comments
...
Also fix some diagnostics
2016-04-06 17:34:00 -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
Max Moiseev
d721a03d90
[stdlib][swift-3-indexing-model] fixing Index tests
2016-03-23 16:07:20 -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
Dave Abrahams
a5b0b9d764
[stdlib] indexing model: lift Strideable constraint
...
Making constraining the indices of RandomAccessCollections to be
Strideable has dubious semantic implications and makes implementing
AnyRandomAccessCollection really hard.
2016-03-15 12:54:41 -07:00
Dmitri Gribenko
edc18682f2
New indexing model: default implementation for Collection._failEarlyRangeCheck()
2016-03-11 01:36:48 -08:00
Shawn Erickson
68ff64357c
Changed _failEarlyRangeCheck(rangeStart: ... boundsEnd:) --> _failEarlyRangeCheck(range:, bounds:)
2016-03-07 09:57:48 -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
f11a3227c8
[stdlib] - addressing review comments in PR1413
2016-02-23 15:46:29 -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