Valery Ushakov <u...@stderr.spb.ru> wrote: > On Sat, Dec 10, 2022 at 17:24:24 -0500, Jan Schaumann wrote: > > > How do you feel about adding a separate manual page for the sizeof > > operator? > > I don't think it's a good idea.
The reason I think it would be useful is that I see novice programmers frequently make mistakes. Their general go-to solution rather than manual pages is Google and Stack Overflow, and there they tend to pick up wrong use cases or unbaked solutions. For 'sizeof', there is no good reference (other than the C standard, I suppose) that allows them to easily look up what it does or how to use it. Having a manual page would, I think, help people. > A man page is not the right medium/format for this. What would be the right format or medium? I mean, we ship e.g., cdefs(3), types(3), offsetof(3), and c(7), which strike me as similar. -Jan