<div dir="ltr">On 21 November 2017 at 21:55, Mike Kluev <span dir="ltr">&lt;<a href="mailto:mike.kluev@gmail.com" target="_blank">mike.kluev@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>maybe this?</div><div><br></div><div><div>{</div><div>    capture weak foo, loo, poo         // &quot;capture list&quot;, if present</div><div><div>    capture unowned bar, baz, booz   // shall be at the beginning</div></div><div><div>    capture weak delegate = self.delegate!  // before anything else</div></div><div><br></div><div>    foo()<br></div><div>    ...</div><div>}</div></div><div><br></div><div>compare to the current:<br></div><div>{</div><div>    [</div><div>        weak foo, weak loo, weak poo</div><div>        unowned bar, unowned baz, unowned booz</div><div>        weak delegate = self.delegate!</div><div>    ] in</div><div><br></div><div>    foo()</div><div>    ...</div><div>}</div><div><br></div><div>a bit more explicit / expressive, looks like ordinary statements, and doesn&#39;t have that strange &quot;in&quot; at the end.</div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div></font></span></div></div></div></blockquote><div><br></div><div>or even this:</div><div><br></div><div>{</div><div>    weak capture foo, loo, poo</div><div>    unowned capture bar, baz, booz</div><div>    weak capture delegate = self.delegate!</div><div><br></div><div>    // capture list if any has to be before anything else</div><div>    </div><div>    weak var some = other<br></div><div><div>    foo()</div><div>    ...</div></div><div> }</div><div><br></div><div>here &quot;capture&quot; is a noun, playing the role of &quot;var&quot; / &quot;let&quot;.</div><div><br></div><div>Mike</div><div><br></div></div></div></div>