Re: Lindent fixed to match reality

Tim Hockin
2004-01-29T23:18:27Z

Ahh, religion.

On Thu, Jan 29, 2004 at 11:54:56PM +0100, David Weinehall wrote:

> But I guess that was just a typo? Of course, since the ()'s are useless
> here anyway, and doesn't really bring any added bonus, we end up with
>
> sizeof *foo + 1
>
> vs
>
> sizeof*foo + 1

No, you're building a straw man. Everyone knows that you should always use
the parens on sizeof(). Just because you CAN leave them out SOMETIMES does
not mean you SHOULD.

> sizeoffoo
>
> would be invalid code, while
>
> sizeof foo
>
> is perfectly valid.

ooh, look at that straw man burn!