<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">The call stack could certainly be a worthwhile thing to capture in an operator implementation. The #file and #line would tell you which usage of the operator you’re using, and the callStackSymbols would tell you how you got there. You’d want them both, however, if you used the same custom operator multiple times in the calling function: the callStackSymbols alone wouldn’t necessarily be enough to disambiguate which usage of the operator you should be looking at.<div class=""><br class=""></div><div class="">Dave<br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 3, 2017, at 11:40 AM, Mike Kluev &lt;<a href="mailto:mike.kluev@gmail.com" class="">mike.kluev@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">on Fri, 3 Nov 2017 09:40:35 -0600 Dave DeLong &lt;<a href="mailto:swift@davedelong.com" class="">swift@davedelong.com</a>&gt; wrote:<br class=""></div><div class=""><br class=""></div><div class="">&gt; That’s cool, but a hygienic macro system isn’t anywhere on the Swift roadmap.<br class=""></div><div class="">&gt;</div><div class="">&gt; Chris has mentioned in interviews that such a system is "a big feature that’s open-ended and requires a huge design process” which makes off-the-table for Swift 5, and (I’m guessing) unlikely for Swift 6 too.</div><div class=""><br class=""></div><div class="">&gt; Personally I’d like to be able to better debug my apps in Swift 4.1 rather than waiting another 2 or 3 years for a magical macro system to somehow solve this.</div><div class=""><br class=""></div><div class="">if that's just for debugging -- consider using Thread.callStackSymbols</div><div class=""><br class=""></div><div class="">last i checked it has the entries in the mangled form, but probably it's (1) good enough for debugging purposes and (2) possible to de-mangle them somehow.</div><div class=""><br class=""></div><div class="">Mike</div><div class=""><br class=""></div></div>
</div></blockquote></div><br class=""></div></div></body></html>