<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><span></span></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Le 25 mai 2016 à 14:28, Erica Sadun via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; a écrit&nbsp;:<br><br></div><blockquote type="cite">Over the past couple of days, the Twitters have discovered some work I'd done on closure-based setup.&nbsp;<div class="">It's clear that a demand is out there and strong for this kind of behavior, even without implicit `self` as&nbsp;</div><div class="">part of the mix or cascading. In that light, I've put together the following:<div class=""><br class=""></div><div class=""><a href="https://gist.github.com/erica/96d9c5bb4eaa3ed3b2ff82dc35aa8dae" class="">https://gist.github.com/erica/96d9c5bb4eaa3ed3b2ff82dc35aa8dae</a></div><div class=""><br class=""></div><div class="">If the community demand is this high, I think we should re-consider pushing it before 3.&nbsp;</div><div class="">Feedback as always welcome, including criticism.</div><div class=""><br></div></div></blockquote><br><div>Recently there was another possible 'with' variant:</div><div>- instead of being a: with 'instance' create new 'instance' using 'closure'</div><div>- it was a: with(/on) 'instance/s' perform 'closure' (same idea as the closure-based initialization, described in the motivation)</div><div><br></div><div>The thread "What about a VBA style with Statement?":&nbsp;<a href="http://thread.gmane.org/gmane.comp.lang.swift.evolution/14384">http://thread.gmane.org/gmane.comp.lang.swift.evolution/14384</a></div><div><br></div></div><div>In either case the 'with' can be misleading/confusing; with, on its own doesn't suggest creation of a new entity, nor does it strongly suggest possible mutation.</div><div><br></div><div>Just mentioning it as to end up... with the proper name for this new function.</div><div><br></div><div>Dany</div><div><br></div></body></html>