<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Dec 4, 2015, at 11:26 AM, David Smith &lt;<a href="mailto:david_smith@apple.com" class="">david_smith@apple.com</a>&gt; wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">The other concern with patterns like this is that they tend to lead to reference cycles due to unintentional closure capture.</span></div></blockquote><br class=""></div><div>We could do something with selectors similar to what we do with C function pointers and limit them to taking closures that take no context. We could do this by having a '@convention(objc_selector)' or something like that that represents a context-free (Self: class) -&gt; Args -&gt; Return function type as a selector pointer; invoking it emits objc_msgSend.</div><div><br class=""></div><div>-Joe</div></body></html>