<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 7, 2016, at 12:46 AM, Jordan Rose via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" 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 Jul 6, 2016, at 11:03, Jacob Bandes-Storch via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word" class=""><div class="">* <b class="">Remove unsafeAddressOf</b>. "We are not aware of any real use cases for it. If there are any, it should be renamed to unsafeAddress(of:) to follow the guidelines." (<a href="https://bugs.swift.org/browse/SR-1957" target="_blank" class="">https://bugs.swift.org/browse/SR-1957</a> <a class="">rdar://problem/18589289</a>)<br class=""></div><div class=""><br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">Oops, I just responded to this on another thread. Pasting:</div><div class=""><br class=""></div><div style="font-size:12.8px" class="">It's minor, but I use unsafeAddressOf regularly for writing `description` methods:</div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""> var description: String {</div><div style="font-size:12.8px" class=""> return "<\(self.dynamicType): \(unsafeAddressOf(self))>{ more info here... }"</div><div style="font-size:12.8px" class=""> }</div><div style="font-size:12.8px" class=""><br class=""></div><div class=""><span style="font-size:12.8px" class="">I guess this would be covered by some generalized solution for format specifiers in string interpolations, but I gather that won't happen for quite a while...</span> </div></div></div></div></div></blockquote><br class=""></div><div class="">I believe `ObjectIdentifier(self)` prints basically the same way.</div><div class=""><br class=""></div><div class="">Jordan</div></div></div></blockquote><div><br class=""></div><div><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Unfortunately, it doesn't:</div></div></div><div><br class=""></div><div style="margin: 0px; font-size: 9px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">print</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">\</span><span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">(</span><span style="font-variant-ligatures: no-common-ligatures" class="">ObjectIdentifier</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span><span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">obj</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span><span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">)"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div><div style="margin: 0px; font-size: 9px; line-height: normal; font-family: Menlo; color: rgb(112, 61, 170);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><br class=""></span></div><div style="margin: 0px; line-height: normal;" class=""><span style="color: rgb(0, 0, 0); font-family: Menlo; font-size: 9px; font-variant-ligatures: no-common-ligatures;" class="">--> </span><font face="Menlo" class=""><span style="font-size: 9px;" class="">ObjectIdentifier(_value: (Opaque Value))</span></font></div><font face="Menlo" class=""><span style="font-size: 9px;" class=""><br class=""></span></font><div><br class=""></div><div><br class=""></div><br class=""><blockquote type="cite" class=""><div class="">_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></body></html>