[swift-dev] [stdlib] Array.description calls debugDescription on its contents
Dave Abrahams
dabrahams at apple.com
Sat Dec 12 14:41:32 CST 2015
Sent from my moss-covered three-handled family gradunza
> On Dec 12, 2015, at 9:09 AM, Brent Royal-Gordon via swift-dev <swift-dev at swift.org> wrote:
>
> It would similarly be nice if String.init(_: Any) were instead String.init(_: CustomStringConvertible), and passing something to it that wasn’t convertible was an error.
Why would that be nice? It is an explicit goal that every type can be represented as a string, whatever its conformance a, FWIW
More information about the swift-dev
mailing list