Re: Convention: true/false

From: Date: Tue, 26 Jun 2001 14:08:40 +0000
Subject: Re: Convention: true/false
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969335646@lists.php.net to get a copy of this message
I personally don't care for one over the other. I would only prefer that we are consistant and that it's rendered properly in the various manual formats. Daniel ----- Original Message ----- From: "Jeroen van Wolffelaar" <jeroen@A-Eskwadraat.nl> To: "Hojtsy Gabor" <goba@mail.digitel2002.hu> Cc: <jeroen@php.net>; "PHP-DOC lista" <phpdoc@lists.php.net> Sent: Tuesday, June 26, 2001 4:26 AM Subject: Re: [PHP-DOC] Convention: true/false > > TRUE *is not* a constant. There is a boolean type in PHP 4. > > TRUE *was* a constant in PHP 3... > > It is still defined as constant, just like NULL. > (zend_constants.c:117 : true/false constants) > THough you can argue > that it's better to see it as being a special keyword. > > It is a constant in the sense that its value never changes. > And, though layout shouldn't be an issue when it comes to xml, I like > the makeup op <constant> better in case of values like true... > > So, I'm still in favor of <constant>. Thats 1 contra, 1 pro. > > > Goba > > > > > > Jeroen van Wolffelaar > Jeroen@A-Eskwadraat.nl > http://www.A-Eskwadraat.nl/~jeroen > >

« previous php.doc (#969335646) next »