3 ms·
«And another thing you always desired: the struct keyword is not needed in the declaration» Someone doesn't understand the value of the "struct" keyword: http
by etanol 15y ago
«And another thing you always desired: the struct keyword is not needed in the declaration»
Someone doesn't understand the value of the "struct" keyword:
https://github.com/torvalds/linux/blob/master/Documentation/CodingStyle#L272 https://github.com/torvalds/linux/blob/master/Documentation/...
- angelortega 15y agoI understand the argument exposed in the document; anyway, I've always felt the "struct" was somewhat redundant and added unnecesary noise (specially if you use three or more pointers to structs in function prototypes, for example). The example is also not very useful and even a bit perverse: sure you don't know what "vps_t a" is at first sight, but with "struct virtual_container a" you have almost the same information. If you could omit the "struct" and wrote it as "virtual_container a", the meaning is equally clear. Anyway, I think this is a matter of taste.