[swift-evolution] [Proposal Draft] Flexible memberwise initialization

Matthew Johnson matthew at anandabits.com
Thu Dec 24 07:41:54 CST 2015



Sent from my iPad

> On Dec 24, 2015, at 5:46 AM, Thorsten Seitz <tseitz42 at icloud.com> wrote:
> 
> 
>> Am 22.12.2015 um 18:30 schrieb Matthew Johnson <matthew at anandabits.com>:
>> 
>> My proposal is specifically suggesting that we treat “initial value” as a default rather than an initialization that always happens.  IMO the current behavior is limiting and problematic in a number of ways.
>> 
>> If we make the change I am suggesting double initialization / assignment will not happen. 
> 
> Ah, ok! 
> 
> I'm a bit uneasy about overloading the initial-value-syntax with a new meaning, though.
> 
> -Thorsten

This was pulled from the latest draft of the proposal.  Please take a look at the current draft and let me know if you like the new solution better.

Matthew


More information about the swift-evolution mailing list