URL: https://linuxfr.org/users/ehoebadoag/journaux/jadore-linus Title: J'adore Linus Authors: 007 Date: 2004年07月23日T12:05:38+02:00 Tags: lwn Score: 0 Perso, les '0' à la place de 'NULL' me gonffle. C'est très courant en C. Vu sur lwn.net. Voilà que Linu**x** va faire la chasse à l'utilisation abusive de '0' pour les pointeurs : [http://lwn.net/Articles/93574/(...)](http://lwn.net/Articles/93574/) Un mail de Linu**s** pour clarifier le tout : [http://lwn.net/Articles/93577/(...)](http://lwn.net/Articles/93577/) _ > What's wrong with using 0 as the NULL pointer? In contexts where £spaces£ £/spaces£> a plain 0 is unsafe, NULL is usually unsafe as well. It's not about "unsafe". It's about being WRONG. The fact is, people who write "0" are either living in the stone age, or are not sure about the type. [...] In other words: £spaces£ £/spaces£char * p = 0; /* IS WRONG! DAMMIT! */ £spaces£ £/spaces£int i = NULL; /* THIS IS WRONG TOO! */ and anybody who writes code like the above **either needs to get out of the kernel, or needs to get transported to the 21st century**. £spaces£ £/spaces£Linus_ J'adore son style.

AltStyle によって変換されたページ (->オリジナル) /