Niels Andriesse
12b85a1cf8
Change .None to nil
2015-12-12 17:45:22 +11:00
Niels Andriesse
d30db93977
Update next() function for removal of ++ operator
2015-12-12 17:43:12 +11:00
Jordan Rose
cf8baedee2
Re-apply "Rename @transparent to @_transparent for now."
...
This re-applies 90fcbfe9a6 . I'll be committing
the corresponding change to Foundation momentarily.
2015-11-16 10:53:56 -08:00
Xin Tong
16843684b2
Revert "Rename @transparent to @_transparent for now."
...
This reverts commit 90fcbfe9a6 .
Seems there are still some tests that are left not modified.
2015-11-14 07:04:31 -08:00
Jordan Rose
90fcbfe9a6
Rename @transparent to @_transparent for now.
...
This feature has not been fully designed, let alone properly implemented.
For more information, see docs/TransparentAttr.rst.
2015-11-13 16:25:34 -08:00
Dmitri Hrybenko
dd3194a18c
stdlib: adopt @warn_unused_result
...
rdar://20957486
Swift SVN r31048
2015-08-06 14:53:18 +00:00
Dave Abrahams
913f09838a
[stdlib] Add a default generate() for generators...
...
...that are also sequences, and rip out all redundant implementations of
generate() that match a default.
Swift SVN r30035
2015-07-09 19:49:24 +00:00
Dmitri Hrybenko
82122f9362
stdlib: fixit-based migrations for generic parameter renames
...
rdar://21538940
Swift SVN r29756
2015-06-27 04:06:27 +00:00
Dmitri Hrybenko
5b8837fe1a
stdlib: change Range.{startIndex,endIndex} into stored properties
...
Previously, they were computed properties that just wrapped stored
properties. NFC.
Swift SVN r29626
2015-06-24 20:41:56 +00:00
Dmitri Hrybenko
585553ad04
stdlib: Range: remove declarations that can be inferred
...
Swift SVN r29625
2015-06-24 20:41:56 +00:00
Dmitri Hrybenko
f11f4946cb
stdlib: rename generic parameters from T to Element
...
... for Range and RangeGenerator.
Part of rdar://21429126
Swift SVN r29624
2015-06-24 20:41:55 +00:00
Dave Abrahams
f1243f5f65
[stdlib] Pattern match Ranges efficiently again.
...
Fixes <rdar://21091371>. When SequenceType acquired a O(N) 'contains'
method, the code for pattern matching a Range started using that method
instead of implicitly deducing a HalfOpenInterval.
We still have a problem though:
(1_000_000..<1_000_000_000).contains(1)
will compile and appear to hang at runtime. I'll bring this up on the
mailing list.
Swift SVN r28998
2015-05-24 22:43:40 +00:00
Dmitri Hrybenko
d4baf3fadb
stdlib: comments: Don't use markup in code listings in comments
...
Patch by Brian Lanier.
Swift SVN r28893
2015-05-21 23:17:37 +00:00
Dmitri Hrybenko
6aa84e164d
stdlib: clean up some FIXMEs for protocol extensions
...
Swift SVN r28661
2015-05-16 04:26:21 +00:00
Dmitri Hrybenko
313701286b
stdlib: Various punctuation and markup improvements to the comments.
...
Patch by Brian Lanier.
Swift SVN r28659
2015-05-16 03:04:51 +00:00
Dmitri Hrybenko
843d8a4eb7
stdlib: protocol extensions: de-underscore map()
...
Swift SVN r28502
2015-05-13 01:58:46 +00:00
Dmitri Hrybenko
68ef59e37a
stdlib: Convert comments to use '- requires:' instead of 'Requires:'.
...
Tidy misc. comments and markdown along the way.
Patch by Brian Lanier.
Swift SVN r28473
2015-05-12 17:47:11 +00:00
Dave Abrahams
5c55682d8b
[stdlib] Capitalize keywords in doc comments
...
Again, the text is a lot more readable that way.
Swift SVN r28472
2015-05-12 16:59:13 +00:00
Dmitri Hrybenko
1bc7b4c226
Move requirements out of abstracts.
...
Searched for "/// ..*Requires:" and did manual replacements.
Patch by Alex Martini.
Swift SVN r28465
2015-05-12 07:39:52 +00:00
Dmitri Hrybenko
f46f16ae82
stdlib: implement new print() API
...
rdar://20775683
Swift SVN r28309
2015-05-08 01:37:59 +00:00
Dmitri Hrybenko
a741b1b191
stdlib: mark Range.isEmpty for removal, it will become redundant soon
...
Swift SVN r27907
2015-04-29 04:24:13 +00:00
Dmitri Hrybenko
e0affbcbae
stdlib: fix coding style
...
Swift SVN r27906
2015-04-29 04:24:13 +00:00
David Farler
9e28dc777a
Update standard library doc comments to Markdown
...
rdar://problem/20180478
Swift SVN r27726
2015-04-26 00:07:11 +00:00
Dmitri Hrybenko
70828ef4fb
stdlib: stop using _CollectionType to the largest extent possible
...
Swift SVN r27448
2015-04-18 04:25:25 +00:00
Dmitri Hrybenko
d267b86cb6
stdlib: move the bulk of SequenceType algorithms to protocol extensions
...
rdar://19895265
Swift SVN r27269
2015-04-14 01:53:19 +00:00
Dmitri Hrybenko
e5ca5f5952
stdlib: remove unused typealias that was added by mistake
...
Swift SVN r27114
2015-04-08 00:41:21 +00:00
Dave Abrahams
ac3f047496
[stdlib] Renaming fallout from Mirror API review
...
toString(x) => String(x)
toDebugString(x) => String(reflecting: x)
Printable => CustomStringConvertible
DebugPrintable => CustomDebugStringConvertible
Also updated comments to clarify these protocols
Swift SVN r27090
2015-04-07 20:32:26 +00:00
Dmitri Hrybenko
ff2dd6320a
stdlib: fix coding style
...
When colon specifies is-a relationship between types, we put spaces on
both sides of the colon.
Swift SVN r27016
2015-04-05 05:54:55 +00:00
Dmitri Hrybenko
350248dae5
Reorganize the directory structure under 'stdlib'
...
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.
See stdlib/{public,internal,private}/README.txt for more information.
Swift SVN r25876
2015-03-09 05:26:05 +00:00