<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;"><br><div><div>On Mar 3, 2014, at 10:29 AM, Chandler Carruth <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 9:48 AM, Chris Lattner <span dir="ltr"><<a href="mailto:sabre@nondot.org" target="_blank">sabre@nondot.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><blockquote type="cite"><div dir="ltr"><div class="gmail_extra">In the best case 'get' doesn't really add any meaning, and in the worst case it is actively misleading</div>
</div></blockquote><div><br></div></div><div>It's getting the range though, just like Function::getArgumentList() returns the argument list.</div></blockquote><div><br></div><div>I really disagree (and I disagree with getArgumentList for the same reason).</div>
<div><br></div><div>getFoo should return something with value semantics (even if its a const reference to delay the copy). setFoo should directly mutate something.</div><div><br></div><div>What we're really doing is making the equivalent of a "member-like accessor" method.</div></div></div></div></blockquote><br></div><div>Ok, can this be generalized into guidance we can put in the coding standards?</div><div><br></div><div>-Chris</div><br></body></html>