<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>What do you think about these examples?</div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> <span style="color: #bb2ca2">auto</span> failureCallback = [promiseWrapper]() <span style="color: #bb2ca2">mutable</span> {</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> promiseWrapper.<span style="color: #31595d">reject</span>(<span style="color: #bb2ca2">nullptr</span>);</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"> };</div></div></div></blockquote><div><br></div>Here I think auto is good because the type is disgusting to write out by hand, and because the type is clearly visible on the right hand side of the expression.</div><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><span style="font-family: Menlo; font-size: 11px;"> </span><span style="font-family: Menlo; font-size: 11px; color: rgb(187, 44, 162);">auto</span><span style="font-family: Menlo; font-size: 11px;"> iter = </span><span style="font-family: Menlo; font-size: 11px; color: rgb(79, 129, 135);">m_nameToIdentifierMap</span><span style="font-family: Menlo; font-size: 11px;">.</span><span style="font-family: Menlo; font-size: 11px; color: rgb(61, 29, 129);">find</span><span style="font-family: Menlo; font-size: 11px;">(name.</span><span style="font-family: Menlo; font-size: 11px; color: rgb(61, 29, 129);">isolatedCopy</span><span style="font-family: Menlo; font-size: 11px;">());</span></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(79, 129, 135);"><span style=""> </span><span style="color: #bb2ca2">if</span><span style=""> (iter == </span>m_nameToIdentifierMap<span style="">.</span><span style="color: #3d1d81">end</span><span style="">())</span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(187, 44, 162);"><span style=""> </span>return<span style=""> </span>false<span style="">;</span></div></div></div></blockquote><div><br></div>Here I think auto is good because it likely meets the "disgusting templated iterator type” clause — even though it’s not in a loop.</div><div><br></div><div>Geoff</div></body></html>