Nate Cook
e5eeb19726
[docs] Improve example hashValue implementation
...
The naive implementation in the original had even worse performance
than anticipated.
2017-04-01 15:07:04 -04:00
Slava Pestov
66bcf5b756
stdlib: Address a couple of ABI FIXMEs by deleting code
...
We have an implicit conversion to AnyHashable, so there's no
need to have the special subscript on Dictionary at all.
2017-02-21 20:28:49 -08:00
practicalswift
6d1ae2a39c
[gardening] 2016 → 2017
2017-01-06 16:41:22 +01:00
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
airspeedswift
ed5231b47c
Numbered all FIXME(ABI) entries for tracking purposes. ( #4868 )
2016-09-19 16:41:41 -07:00
Dmitri Gribenko
b162f60070
runtime: make _SwiftNativeNSError use the Hashable conformance, if available
...
If the Swift error wrapped in a _SwiftNativeNSError box conforms to
Hashable, the box now uses the Swift's conformance to Hashable.
Part of rdar://problem/27574348.
2016-08-09 00:49:20 -07:00
Dmitri Gribenko
ece14ccc2e
stdlib: add convenience APIs for Set<AnyHashable> and Dictionary<AnyHashable, *>
...
Implements SE-0131 "Add AnyHashable to the standard library".
2016-07-26 03:10:52 -07:00
Patrick Pijnappel
2728bd0145
[stdlib] Standardize function signature spacing
2016-07-23 11:51:32 +10:00
Doug Gregor
0bf7c005b3
[SE-0091 Follow-up] Move global operators for non-generic concrete types into the type.
...
In various cases where we had global operators for non-generic
concrete types (such as String + String), move those operators into
the type. This should not affect the sources, but makes the exposition
of the library cleaner.
Plus, it's a good test for the compiler, which uncovered a few issues
where the compiler was coupled with the library.
2016-07-21 12:54:27 -07:00
Nate Cook
af224c0566
[stdlib] Various minor documentation edits ( #3614 )
...
* [stdlib] Fix UTF8View example code
* [stdlib] Update code sample for SE-0099
* [stdlib] Standardize operator naming
* [stdlib] Minor edits to Error documentation
2016-07-20 13:23:49 -05:00
Dmitri Gribenko
4cd41051b3
stdlib: move Equatable, Comparable and Hashable into separate files
2016-07-14 18:26:30 -07:00