• Zacryon@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      2 days ago

      It’s not just about runtime performance, but also about coding flexibility, and for example also reduction of boilerplate.

      • lolcatnip@reddthat.com
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 days ago

        Ah yes, I love how C++ is has so little boilerplate. Sometimes I can even write several statements in a row without any!

        • Zacryon@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          2 hours ago

          You’ve missed the context. There are occasions in Rust where you have to use more boilerplate code which you wouldn’t have to implement in C++ to that extent.

          But saying that C++ is free of boilerplate is of course ridiculous, if you are not able to heavily leverage templates, CRTPs, macros and alike.