httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: Coding style
Date Mon, 02 Oct 2006 22:54:21 GMT
On Monday 02 October 2006 23:31, Roy T. Fielding wrote:

> > We can avoid this by adopting an alternative coding style
> > that doesn't rely on confusing parentheses:
> >
> >   if (rv = do_something(args), rv == APR_SUCCESS)
> Which nobody uses because it is so weird and unusual (speaking as a perl
> programmer who uses even more weird and unusual syntax all the time).

Not a Lisp programmer, I take it?  (lisp is full of comma-lists)
I often use them in C, and have done since nineteeneightysomething.

> It wouldn't surprise me at all to find that it doesn't even compile with
> some of the older C compilers, though I haven't tested it.

It's been clearly defined by ANSI C for as long as ANSI C has existed.
I'm pretty sure it was K&R before that, too.

Nick Kew

View raw message