Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "Peter H. Coffin" Newsgroups: comp.lang.php Subject: Re: loose thinking Date: Tue, 24 Jan 2012 08:16:19 -0600 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <9o7h5fFu6rU1@mid.uni-berlin.de> <9o7q84F33fU1@mid.uni-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="le/2G4+BNpieVhQI6uJ2Lw"; logging-data="21287"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0VqerVfQtEvNeMhIRKL2i" User-Agent: slrn/0.9.9p1 (OpenBSD) Cancel-Lock: sha1:oHCcoXSF6CazEHCEF5bc+vAgZHk= Xref: x330-a1.tempe.blueboxinc.net comp.lang.php:4596 On Tue, 24 Jan 2012 14:32:52 +0100, M. Strobel wrote: > Okay I see it is well documented. I just started testing. > > I am angry about it because not even isset() respects the null value > here. I think it makes more sense this way: isset($a[null]) should > return false, because there is no null index. Parens change precedence. Even on functions. > The point is that the designers of PHP (if you can talk about design > here) probably meant to help programmers in not making all these > hideous type distinctions, but the outcome is you have to be really > careful about loose comparison and unwanted type conversion, having to > write even more if constructs. Yup. If you want Pascal, you know where to find it. -- A way of life that is odd or even erratic but interferes with no rights or interests of others is not to be condemned because it is different. -- Chief Justice Warren E. Burger