Re: Changes to recode.xml

From: Date: Fri, 10 Nov 2000 11:42:38 +0000
Subject: Re: Changes to recode.xml
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969332857@lists.php.net to get a copy of this message
Zak Greant writes: > > 'bool' or 'boolean'? Both are used in the current function reference: > > 'boolean' 27 times; 'bool' 77 times. I think we should write down > > somewhere which is officially preferred. > > IMHO boolean should be used - it is the standard term. My initial kneejerk reaction would be to disagree with this--'bool' is a common term in many programming environments. At least, as I was going through school, things were presented in such a fashion as to make 'bool' a data type, and 'boolean' the class of mathematics to which 'bool' belonged. So a variable would be a 'bool', and the operations upon it would typically belong to the Boolean algrebra. However, given that A) many folks don't come from the same background, and B) PHP typically uses 'boolean', I see your point. Of course, PHP has some internal inconsistencies here--one example being that while gettype(false) returns 'boolean', there is no is_boolean() function. There is only is_bool(). Perhaps this should be aliased and is_bool() deprecated? Comments, anyone? Weird, the places where these little nigglets come out. :) Cheers, Torben -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.doc (#969332857) next »