Originally posted by DanielG
View Post
Announcement
Collapse
No announcement yet.
Linus Rejects "Size Of Member" Change From Linux 5.5 Kernel
Collapse
X
-
Originally posted by DanielG View PostWho fucking cares if some internal kernel macros are unified under a common name or not and what nam it would be?
- Likes 1
Comment
-
1./ Consolidating the code to use just one well-implemented/-documented/-understood macro seems desirable in and of itself?
2./ If the above is accepted as sound and valid, why not simply (re-)name the new macro sizeof_field, replace the existing macro invocations (basically re-using the already existing google branch) and be done with it?
Puerile chitchat aside, what am I missing?
- Likes 1
Comment
-
Removing sizeof_member.... err all sizeof... err size... and length... and len.... because we know what you mean.
PC Linux kernel with all vars and and function names limited to just the single letters a-w, y-z and up to 2 numbers following. Thus, a02 is ok. but not xx69.
- Likes 1
Comment
-
Originally posted by microcode View PostI actually talked about this with a teenager, and they said “hah, you said member”. It donned on me that I am getting old at just 22.
On a more serious note, Linus makes a perfectly good point. There is no good reason it can't be sizeof_field like it already is elsewhere, and "field" is a perfectly good name for the parts of a struct, at least as much as "member".
Comment
-
On an unrelated note, it always baffles me why certain groups of developers like to use underscores in their functions. IMO sizeOfMember or SizeOfMember are both quicker and easier to type. The distance of the _ character is much further than the shift key. There are also fewer characters.
- Likes 1
Comment
-
Originally posted by betam4x View PostOn an unrelated note, it always baffles me why certain groups of developers like to use underscores in their functions. IMO sizeOfMember or SizeOfMember are both quicker and easier to type. The distance of the _ character is much further than the shift key. There are also fewer characters.
- Likes 2
Comment
-
Comment