<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span class="" style="font-family: Menlo; font-size: 19px; color: rgb(187, 44, 162);">let</span><span style="font-family: Menlo; font-size: 19px;"> task = NSTask()&gt;&gt;{</span></div><blockquote type="cite"><div style="font-size: 15px;" class=""><div style="margin: 0px; font-size: 19px; line-height: normal; font-family: Menlo;" class="">&nbsp; &nbsp; launchPath = <span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">"/usr/bin/mdfind"</span></div><div style="margin: 0px; font-size: 19px; line-height: normal; font-family: Menlo; color: rgb(209, 47, 27);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">&nbsp; &nbsp; arguments = [</span>"kMDItemDisplayName == *.playground"<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">]</span></div><div style="margin: 0px; font-size: 19px; line-height: normal; font-family: Menlo;" class="">&nbsp; &nbsp; standardOutput = <span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">pipe</span></div><div style="margin: 0px; font-size: 19px; line-height: normal; font-family: Menlo;" class="">}</div></div><div style="font-size: 15px;" class=""><br></div></blockquote><br><div>I think something like this would be extremely useful, however I think the proposal as it is written is a bit more limited than I would like to see as it only applies to mutable properties. &nbsp;</div><div><br></div><div>I don't have a concrete idea of exactly what I would prefer, but it would take the form of a general solution that would allow an initializer to accept initial values for some or all public stored properties from the caller. &nbsp;The simplest case might look a lot like the compiler generated memberwise initializer for structs. &nbsp;Slightly more complex cases might allow the caller to omit some properties if a default is specified by the type or by the initializer. &nbsp;Going a step further, some initializers for a type may need to initialize some of the stored priorities directly and thus not allow those specific properties to be specified by the caller.</div><div><br></div><div>The goal is to allow flexible initialization for callers without sacrificing immutability and without requiring a ton of initializer overloads.</div><div><br></div><div>If others like this basic idea I will try to make it more concrete and write a proposal.</div><div><br></div><div>Matthew</div></body></html>