Commit Graph

7 Commits

Author SHA1 Message Date
Dmitri Hrybenko
e253881b02 stdlib: protocol extensions: de-underscore indices
Swift SVN r28245
2015-05-07 00:30:35 +00:00
Doug Gregor
793b3326af Implement the new rules for argument label defaults.
The rule changes are as follows:
  * All functions (introduced with the 'func' keyword) have argument
  labels for arguments beyond the first, by default. Methods are no
  longer special in this regard.
  * The presence of a default argument no longer implies an argument
  label.

The actual changes to the parser and printer are fairly simple; the
rest of the noise is updating the standard library, overlays, tests,
etc.

With the standard library, this change is intended to be API neutral:
I've added/removed #'s and _'s as appropriate to keep the user
interface the same. If we want to separately consider using argument
labels for more free functions now that the defaults in the language
have shifted, we can tackle that separately.

Fixes rdar://problem/17218256.

Swift SVN r27704
2015-04-24 19:03:30 +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
Graham Batty
0a73f54e98 Implement a glibc module for StdlibUnittest on linux
Swift SVN r25807
2015-03-06 22:05:13 +00:00
Dmitri Hrybenko
3d6cf683f6 tests: add radars to FIXMEs
Swift SVN r25683
2015-03-02 16:11:18 +00:00
Dmitri Hrybenko
5ec04a895f stdlib: use the unordered comparison for != on floating point
... so that NaNs don't compare equal to NaNs.  Thanks Joe!

rdar://19853437

Swift SVN r25546
2015-02-26 07:58:40 +00:00
Dmitri Hrybenko
5aeb17ad95 stdlib: use correct comparison semantics for floating point numbers
Previously, we did not handle NaNs correctly.

rdar://19853437

Swift SVN r25542
2015-02-26 06:53:09 +00:00