• Valmond
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    How so, templates make for less code usually? Or like template meta prog?

    I’m a C++ dev and I’m lost on this one :-p plz send help

      • Valmond
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Still not getting it, I mean you don’t even get to see the code? IDK

    • JakenVeina@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      /shrug

      That’s my best guess, in the sense that that’s what the compiler ends up producing, for templated code: the same code copy-pasted for however many different use cases you have.