<div dir="ltr"><div class="gmail_extra">I think this case has more problems than just verbosity...</div><div class="gmail_extra"><br></div><div class="gmail_extra">On Mon, Aug 26, 2013 at 10:38 PM, Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com" target="_blank" class="cremed">nlewycky@google.com</a>></span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>a.cc:1:56: error: no template named 'Foox'; did you mean 'Foo'?<br></div>
<div><div>template <typename T> class Foo {}; class Bar : public Foox {};</div>

<div>[point at 'Foox' suggest 'Foo']</div></div></blockquote><div><br></div><div>Why does it assume Foox is a template?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>a.cc:1:29: note: 'Foo' declared here<br></div><div>template <typename T> class Foo {}; class Bar : public Foox {};</div><div>[point at 'Foo']</div>

<div>a.cc:1:56: error: expected template argument list after template-id</div><div>template <typename T> class Foo {}; class Bar : public Foox {};</div><div>[point at 'Foox']</div></div></blockquote></div><br>
And given that we then hit this error, why do we even consider the Foo typo correction? Do we prefer that over a "Fooxie" class due to shorter edit distance? That doesn't seem right. I would intuitively expect the lack of "<..." to be a stronger signal than any edit distance, and thus disqualify template-ids from the typo correction candidate set.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">-Chandler</div></div>