<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On May 25, 2016, at 2:55 PM, Matthew Johnson &lt;<a href="mailto:matthew@anandabits.com" class="">matthew@anandabits.com</a>&gt; wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On May 25, 2016, at 3:48 PM, Jacob Bandes-Storch via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I like this pretty well, and I think "with()" makes sense as a peer of "withUnsafePointer()", "withExtendedLifetime()", etc.<div class=""><br class=""></div><div class="">I'd also be okay with waiting for a comprehensive method-cascading solution. I don't find this issue particularly urgent, because it's pretty easily solvable with an extension or just using closures.</div></div></div></blockquote><div class=""><br class=""></div><div class="">+1. &nbsp;I’ve been playing around with it in my own code a little bit. &nbsp;I’m still uncertain about when I think it is good style and when I think it is best avoided. &nbsp;I would certainly feel more comfortable using it if it was in the standard library. &nbsp;</div><div class=""><br class=""></div><div class="">At the same time, I think we can and should do better in the future. &nbsp;If that is the plan, do we really want `with` in the standard library? &nbsp;I don’t mind waiting for a better solution, especially if it means a better solution is more likely to happen and / or we aren’t left with an unnecessary and duplicative function in the standard library.</div><div class=""><br class=""></div><div class="">So I’m on the fence here. &nbsp;</div></div></div></div></blockquote></div><br class=""><div class="">I wouldn't be pushing if I thought it wouldn't be useful after cascading. If no other reason, it offers a way to duplicate/modify value types to be stored into constants. That alone should argue for its value.</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div></body></html>