Re: not_null function

From: Date: Thu, 03 Jul 2014 11:40:03 +0000
Subject: Re: not_null function
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-75221@lists.php.net to get a copy of this message
Hi, The example that you gave just shows how null is practically equivalent to a non-existing variable. On Thu, Jul 3, 2014 at 2:30 PM, Xen <xen@dds.nl> wrote: > Just try to say this in English: > > "doesn't the cup have anything in it?" or > "does the cup not have anything in it?" How'd you fit null in that? Asking if it's filled with air? To me, this whole conversation is pointless. I don't like aliases (like is_null() for !isset() in this case) and I don't see the point in being _that_ extreme about semantics. In PHP you have at least 5 ways to check that a variable is not null, introducing yet another one is not beneficial for anything in _practice_. Cheers, Andrey.

« previous php.internals (#75221) next »