[Pitch] Add the DefaultConstructible protocol to the standard library

(Oops, forgot to CC the list... sorry for the duplicate email, Tim)


Sent from my iPhone

On Dec 26, 2016, at 09:01, Tim Vermeulen via swift-evolution <swift-evolution@swift.org> wrote:

Then why is Int() allowed, and why does that return 0?

Predictability, I'd guess. The memory has to be initialized to *something*. And, IIRC, some architectures can 0 out memory faster than filling it with some other pattern.

- Dave Sweeris