Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:75254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81536 invoked from network); 4 Jul 2014 21:38:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2014 21:38:28 -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:46530] helo=montblanc.dds.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 80/51-00852-1DE17B35 for ; Fri, 04 Jul 2014 17:38:27 -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 847066E0713; Fri, 4 Jul 2014 23:25:37 +0200 (CEST) Date: Fri, 4 Jul 2014 23:38:21 +0200 (CEST) To: Levi Morrison cc: internals In-Reply-To: Message-ID: References: <002b01cf9784$4c1fe670$e45fb350$@tutteli.ch> 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 Fri, 4 Jul 2014, Levi Morrison wrote: > For completeness, it is available in Perl and I believe Perl had it > first; not completely sure though. Okay, I never used Perl. > I don't think changing isset would be beneficial, sadly. I wish it > only checked that a variable exists and didn't do the not null check > but it's used very, very widely. As long as people don't have to use isset anymore to check for a not-null, perhaps over time this widespreadedness would become less. As soon as you can use "unless (is_null())" to check whether a variable exists and is not null, the need for using isset for this should greatly diminish... Just my perspective. I don't know what other people think, the boogieman of this list seems to not want to discuss anything related to this, so I don't know. I mean for me it means having to rethink my thinking, i.e. to get used to this new statement. But it would probably become very natural? I would imagine a lot of people becoming enthusiastic about an "unless" statement. It is also a sexy thing to introduce and it doesn't require any changes to existing code. Again, just my perspective. Curious what other people really think at this point. Regards, Bart