<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 class="">There are two parts to this suggestion:</div><div class=""><br class=""></div><div class="">Part 1 decorates the return type, which may or may not be used. This makes a lot of sense to me. as the return type can also be treated as Void</div><div class="">Part 2 suggests <font face="Menlo" class="">@convenience</font>. This is easily tweakable.</div><div class=""><br class=""></div><div class="">-- E</div><div class=""><br class=""></div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Feb 25, 2016, at 2:06 PM, Brent Royal-Gordon 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 class=""><blockquote type="cite" class="">I’d say that the cases where it’s ok to discard the result are when the result is not strictly part of the API, but provided because it could be useful to the caller. An attribute that would naturally describe this could be<br class=""><br class="">@convenience<br class=""><br class="">The first example that comes to mind is Dictionary.updateValue. The declaration could then become<br class=""><br class=""> &nbsp;&nbsp;&nbsp;public mutating func updateValue(value: Value, forKey key: Key) -&gt; @convenience Value?<br class=""></blockquote><br class="">@convenience reads really, really well, but I'm worried it might get confused with `convenience init`, which means something completely different.<br class=""><br class="">-- <br class="">Brent Royal-Gordon<br class="">Architechies<br class=""><br 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></div></blockquote></div><br class=""></body></html>