<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=""><div><br class=""><blockquote type="cite" class=""><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="">-1 on implementing an attribute to allow API designers to mark it as discardable</span></div></blockquote></div>This might be fine for your style, but please don't ignore that there is no single way:<div class="">Techniques like method chaining aren't common in Cocoa, but my guess that this is just because the syntax of Objective-C is a bad fit for chaining, which looks much nicer in Swift.</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><font face="Menlo" class="">let _ = discardableResult()</font></div></blockquote></div><div class="">Imho the problems of using "_" to discard results are clearly visible in this thread:</div><div class="">"let" isn't needed, yet it is used in many examples…</div><div class=""><br class=""></div></body></html>