Gregor to Programmer [email protected] • 1 year agoC memegregtech.euimagemessage-square18fedilinkarrow-up1227cross-posted to: [email protected]
arrow-up1227imageC memegregtech.euGregor to Programmer [email protected] • 1 year agomessage-square18fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink20•1 year agoPeople who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.
minus-square@[email protected]linkfedilink8•1 year agoSure, but that’s technically allocation-agnostic either way.
minus-square@[email protected]linkfedilink23•1 year agoFor C++, yes. But “reference” is just a way of using the pointer when it comes to C
People who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.
Sure, but that’s technically allocation-agnostic either way.
For C++, yes. But “reference” is just a way of using the pointer when it comes to C