Convention: true/false
| From: | jeroen@php.net | Date: | Mon, 25 Jun 2001 21:05:34 +0000 |
| Subject: | Convention: true/false | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969335625@lists.php.net to get a copy of this message | ||
How about the convenstion that true/false should always be written as:
<constant>TRUE</constant>
and idem for false?
It is also possible to make that a snippet, but I think that'd be
overkill... What do you think of it?
By the way: typical example of where a good script can be used :) In fact
just
a multifile regex of course.
/(<(literal|constant)>)?false(</\2>)?/i => <constant>FALSE</constant> for
example.
Greetz,
Jeroen