Re: [swift-users] Convenience initializers in structs?

2017-07-18 Thread Chris McIntyre via swift-users
Was it ever explained why the syntax is different? -- Chris McIntyre > On Jul 18, 2017, at 6:46 PM, Jens Persson via swift-users > wrote: > > That is not true. Structs can have delegating initializers but they cannot be > marked with `convenience` (only the

Re: [swift-users] Convenience initializers in structs?

2017-07-18 Thread Slava Pestov via swift-users
Hi Jens, While I’m not familiar with the integer API in the standard library, structs and enums certainly can have convenience initializers. They must delegate to another initializer (either convenience or designated) rather than initializing the fields of the type one by one. Slava > On Jul