Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24742 invoked from network); 3 Jul 2014 11:40:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2014 11:40:09 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.219.44 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.219.44 mail-oa0-f44.google.com Received: from [209.85.219.44] ([209.85.219.44:62668] helo=mail-oa0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 64/F0-47713-61145B35 for ; Thu, 03 Jul 2014 07:40:08 -0400 Received: by mail-oa0-f44.google.com with SMTP id i7so76485oag.31 for ; Thu, 03 Jul 2014 04:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=XGH3FzFCwqq0lBgTfOU/FhoQDRoalZS96+sdvB50078=; b=HR+VwWoNx9Lpf++OBuBuWyZ+WMkyphL9mSWBElHhyyAANpSS8C630umNlxPo27Of2F 0S53j2zAskq0/7NNUXsTPxGFCUjUxzoApbBmzzXdF5k5HKNIwc3NpSasQvyzyhGygGmb GdrOYu9Bm6508sdT1SVtXjIqtgZCpsaGCdva8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=XGH3FzFCwqq0lBgTfOU/FhoQDRoalZS96+sdvB50078=; b=SFViJM++bcDzGwRHaAFJ7vTW8aK8hcvE/RTxjTmrdjC5idBT4QvS5bv4yiTCFZnYhl 6fqgAdCEoOt9ZJhS5NELRgbHG6hbg/WRpNuQSolOsELXUm2FFFngrWhf4K0Gtn/pYKaD OVoDfJYm8O4wEfjivuVS+wUKl63dm1AuMS7ljUUwWkgH0NvaA+I3Qt0GZj2iRKh+kDsz TUBXeHZKSRCAkcIHz0gVkoBOBdd/y1fikTCs+y7Tdo8IlADMemKhzUOLzLua1F2LlT5o GBseEp1DE9P2+g8+eQpB1vUBX9zPghOhkDsq773sOdjShjaowRN8mxmUQU+eIKgkgMDY Cjvw== X-Gm-Message-State: ALoCoQn2tkOShBm/cIrK3K5lLFDm3JJUP2vi1XW7FwHRt11jgABvyo5oGTEUKmNr+aGBVPaUppRW MIME-Version: 1.0 X-Received: by 10.182.200.132 with SMTP id js4mr3860666obc.3.1404387604014; Thu, 03 Jul 2014 04:40:04 -0700 (PDT) Received: by 10.202.85.79 with HTTP; Thu, 3 Jul 2014 04:40:03 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Jul 2014 14:40:03 +0300 Message-ID: To: Xen Cc: Lazare Inepologlou , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] not_null function From: narf@devilix.net (Andrey Andreev) 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 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.