• entwine@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      4 days ago

      I think you’re conflating regular auto use with using it as a return type/argument. The latter is syntactic sugar for declaring a template. It isn’t any less “documented” than doing a template<class ReturnType>....

      • Kairos@lemmy.today
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        Having the return type name is absolutely better documented. But I guess were splitting hairs because its a hard typed language and lexers can find what it is anyway.