4 ms·
Typedeffing away pointers means I don't know when copying or passing something if it's by value or by reference.
by robmccoll 2y ago
Typedeffing away pointers means I don't know when copying or passing something if it's by value or by reference.
- nikanj 2y agoIf it starts with LPsomething or Psomething, it's a pointer. Turns out the much-hated hungarian notation does provide value
- account42 2y agoHaving your typedef be simply "something" and then using something* instead of Psomething would provide the same value and also be readable to people not familiar with your particular naming convention.