@raker to Programmer [email protected]English • 1 year agoOmnilingualismimagemessage-square45arrow-up1860arrow-down122
arrow-up1838arrow-down1imageOmnilingualism@raker to Programmer [email protected]English • 1 year agomessage-square45
minus-square@[email protected]linkfedilinkEnglish23•1 year agoI think templates is what he’s making fun of.
minus-square@ValmondlinkEnglish5•1 year agoHow 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
minus-squarePhrodo_00linkfedilink4•1 year agoI think it’s because each template specialization works kind of like a new copy of a class.
minus-square@Valmondlink1•1 year agoStill not getting it, I mean you don’t even get to see the code? IDK
minus-square@[email protected]linkfedilinkEnglish2•1 year 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.
I think templates is what he’s making fun of.
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
I think it’s because each template specialization works kind of like a new copy of a class.
Still not getting it, I mean you don’t even get to see the code? IDK
/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.