On Thu, 13 Aug 2020 at 08:52, Metzger, Markus T
<markus.t.metz...@intel.com> wrote:
>
> Hello,
>
> > It seems like common sense to me. "Almost always use auto" is a silly
> > guideline. I can't stand seeing nonsense like:
> >
> > auto main() -> int
> > { ... }
>
> I personally do not like auto for reasons like the above or
>
>     auto foo = bar->foo ();
>
> I find this very hard to read and I also think that if types become too
> complicated or too long to type, something else is wrong.

That seems like a reasonable use of auto, and not comparable to the
'main' example I gave above (where it doesn't save you any typing, it
actually involves more keystrokes).

Reply via email to