On Wed, Jan 28, 2026 at 11:00:21PM +0100, Alejandro Colomar via Mutt-dev wrote:
> On 2026-01-28T21:46:14+0000, Ian Collier via Mutt-dev wrote:
> > I disagree.  The parens actually tell you whether the argument is a type
> > or a variable.
> 
> This is not true.  Consider the following counter-example:
> 
>       sizeof(int)1

The 1 is superfluous here.  You don't need it--don't write it.  It is clutter.
Obfuscating rather than elucidating.  sizeof (int)1 is the same as
sizeof (int)65535 is the same as sizeof (int) (at least on
16-bit architectures or greater).

> Another counter-example (C99):
> 
>       sizeof(int){1}

I've never found a use for this syntax and in any case it certainly
could be more clearly written.  I have never seen it used in real
code.  So again, don't do that.  But if you do, write sizeof (int){1}.
The lack of whitespace makes it look like Perl / line noise.

-- 
Derek D. Martin    http://www.pizzashack.org/   GPG Key ID: 0xDFBEAD02
-=-=-=-=-
This message is posted from an invalid address.  Replying to it will result in
undeliverable mail due to spam prevention.  Sorry for the inconvenience.

Reply via email to