• HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    1 day ago

    Why would anyone bother writing it like that? That just seems like int main() with extra steps. Like does auto enable some compiler optimisation of the return type that I’m not aware of?

    • Sonotsugipaa@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      3
      ·
      23 hours ago

      Defining the return type that way can be used when dealing with template sorcery - there’s no use for it here though, not even for readability in any way.