Re: [PATCH] Clean up struct initalizations

From: Date: Tue, 27 Nov 2007 15:12:41 +0000
Subject: Re: [PATCH] Clean up struct initalizations
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-33457@lists.php.net to get a copy of this message
On Nov 27, 2007, at 8:34 AM, Alexey Zakhlestin wrote:
On 11/27/07, Ilia Alshanetsky <ilia@prohost.org> wrote:
IMHO {0} is sufficiently clear for human consumption.
{NULL, 0, 0} brings real structure dimensions to the context, which is good (less need to check "headers").
It also means that you don't get compiler errors any more like you would with {0}. Now, you can know that if there's a warning about the number of initializers that it's something you should pay attention to. The key for long-term maintenance is to clean up the slop so that the compiler doesn't squawk about it at high levels of warnings. Then when you do have real squawk-worthy problems, they don't get lost in the noise of meaningless warnings. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance

« previous php.internals (#33457) next »