Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75224 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30030 invoked from network); 3 Jul 2014 11:56:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2014 11:56:31 -0000 Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.179 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.128.179 mail-ve0-f179.google.com Received: from [209.85.128.179] ([209.85.128.179:56646] helo=mail-ve0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/12-47713-DE445B35 for ; Thu, 03 Jul 2014 07:56:30 -0400 Received: by mail-ve0-f179.google.com with SMTP id sa20so92806veb.10 for ; Thu, 03 Jul 2014 04:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=16bc1g1snlPfgM3VYAqbU6yfCbDAFAclfFKplbrkc48=; b=nVV/upiSqrt8jLaet2k3DsImvb/GQvXB3ztfGhFmYVoNNzg0JA6JxBG/H4BpStbDgj AxDMZfGgk2LANAsKsq9eTXduzGqraQX/YdlWLoOM28rCHhSpC/b+yjmDI/A7kiyr1VRZ Cpum+DLRMQhLY2E4T3I41lBUHt6Qgjdt/wW+JEgpyFn1epyg+/kjRHtUxm8UNDzFl5cq GCU/gmDf0Zmky1aKOG7EDacrpeM5iqAs9cPrMNdjWyEtYaWtDdbIow/ul3YKxci7BFzN zFwPGC6SSlyGSJm03OONZVu4GG3utct5LOkx+xHmg52CftVmCx91UhsCc0AGJ/OGyreo k8XA== MIME-Version: 1.0 X-Received: by 10.52.253.131 with SMTP id aa3mr2793573vdd.25.1404388586351; Thu, 03 Jul 2014 04:56:26 -0700 (PDT) Received: by 10.58.132.71 with HTTP; Thu, 3 Jul 2014 04:56:26 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Jul 2014 19:56:26 +0800 Message-ID: To: Xen Cc: Pierre Joye , PHP internals Content-Type: multipart/alternative; boundary=001a1135e9b6d0f33b04fd48b2aa Subject: Re: [PHP-DEV] not_null function From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a1135e9b6d0f33b04fd48b2aa Content-Type: text/plain; charset=UTF-8 On Thu, Jul 3, 2014 at 7:47 PM, Xen wrote: > On Thu, 3 Jul 2014, Pierre Joye wrote: > > that's why we have is_null, and NULL is a type, not a value btw. >> >> also isset is an operator, not a function. (referred in other replies). >> > > Alright, I stand corrected. But if NULL or null is a type, then comparing > against it with == or === would also be wrong, right? Technically, yes; but in an expression `null` is also the representative value for the type `null` as a convenient way to check whether something is of the type `null`. > > > is_null is consistent with the other is_* functions. A programming >> language is not a natural language so grammatical or semantic >> imperfections are totally valid. >> > > That is just your unfounded opinion. In my view, which I believe is based > on the reasoning that I have espoused today, and just now, semantics are > important because when things are meaningless they confuse us people. And > us programmers are people who use language. And we require language to be > natural and congruent so we can easily grasp it and avoid making errors. As > to the "practical" implications that Andrey Andreeve mentioned in his reply. > > I shall not reply to that message, but if you insist on arguing that > semantics are irrelevant to any degree, you are basically arguing that > there is a good reason to make language harder to understand, read and > write because of some other reason that has nothing to do with it (like how > many constructs already exist). > > > between the is_* functions, isset or ?:, I do not see a need to add >> the exact same features for a non technical reason. >> > > That is find if you see it that way, but I would rather have you answer > with reasoning and arguments instead of just opinions and statements. > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Tjerk --001a1135e9b6d0f33b04fd48b2aa--