Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75223 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28249 invoked from network); 3 Jul 2014 11:47:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Jul 2014 11:47:34 -0000 Authentication-Results: pb1.pair.com header.from=xen@dds.nl; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xen@dds.nl; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain dds.nl from 85.17.251.144 cause and error) X-PHP-List-Original-Sender: xen@dds.nl X-Host-Fingerprint: 85.17.251.144 smtp.dds.nl Linux 2.6 Received: from [85.17.251.144] ([85.17.251.144:38063] helo=montblanc.dds.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/B1-47713-4D245B35 for ; Thu, 03 Jul 2014 07:47:33 -0400 Received: from swan.dds.nl (swan.dds.nl [85.17.251.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by montblanc.dds.nl (Postfix) with ESMTPS id 937746E0726; Thu, 3 Jul 2014 13:34:53 +0200 (CEST) Date: Thu, 3 Jul 2014 13:47:29 +0200 (CEST) To: Pierre Joye cc: PHP internals In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed X-Virus-Scanned: clamav-milter 0.97.8 at montblanc X-Virus-Status: Clean Subject: Re: [PHP-DEV] not_null function From: xen@dds.nl (Xen) 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? > 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.