3 ms·
> thing_t * thing This makes my head hurt! I'd prefer thing_t *thing. But it's a nice concept
by raverbashing 12y ago
> thing_t * thing
This makes my head hurt!
I'd prefer thing_t *thing.
But it's a nice concept
- masklinn 12y agoSurely it should be `thing_t* thing`!
- malka 12y agothing_t* thing_ptr, thing imo, the star should be with the variable name. because, in this case, a reader could think that both thing_ptr and thing are pointer to a thing_t "thing_t thing_ptr, thing, other_thing_ptr" is imo more readable
- perdunov 12y agoIf one uses the entity* notation, they must always declare each variable with a separate declaration, that is: thing_t* ptr1; thing_t* ptr2; not thing_t* ptr1, ptr2 /* <= oops */;