Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88322 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49260 invoked from network); 18 Sep 2015 14:00:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2015 14:00:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.181 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.181 mail-wi0-f181.google.com Received: from [209.85.212.181] ([209.85.212.181:37059] helo=mail-wi0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8D/B9-19961-1191CF55 for ; Fri, 18 Sep 2015 10:00:49 -0400 Received: by wicfx3 with SMTP id fx3so32325928wic.0 for ; Fri, 18 Sep 2015 07:00:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=UibO4I8cBFGmYawBfTcNp1wQx2GlVcR60M48JlzjWV4=; b=nlOojeh1l6DsEoKnCJaLetEEokfi32EaFLmHuPApS9k71kkRPUaY8IoPgnrtNRkqy7 g1OZN5fyUUr6wIrq1mFevkod02cYdE7dUvuDmUjrxquqN1WscH86CkqmTC6xlL9Igw13 RCFlwZF0XzNZrE+IhKokUKVGaR8Ih8t6IfdgsuvkpRV46aZL6JTzR+S8h47dEl2nb5Ww Tp7ASs3rJDmOyZzfwP8xNX8Qcd8uHAURI9Nv44j6YubO5tntCa6cNLJ9bgMlaezrD2al SyCjh/VFcQRAPnPMK8cy87pRxd4QDUNUAedUMyW86LWQjHPWCHRAzdznlH3EIGAP2pul IeiA== X-Received: by 10.194.77.77 with SMTP id q13mr594285wjw.79.1442584845536; Fri, 18 Sep 2015 07:00:45 -0700 (PDT) Received: from [192.168.0.127] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id ej5sm9049539wjd.22.2015.09.18.07.00.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Sep 2015 07:00:44 -0700 (PDT) To: internals@lists.php.net References: Message-ID: <55FC18D3.7010702@gmail.com> Date: Fri, 18 Sep 2015 14:59:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) Stig Bakken wrote on 18/09/2015 14:44: > What lesson can we learn from that? Short and sweet names sometimes > lead to problems, if they do not precisely convey the actual > semantics. > > I would much rather see a function called something like > is_variable_defined(), to avoid running into the same trap with > exists(). No room for assumptions that lead you to not check the docs. I agree 100% with this. If we do add a new function, which I'm still not entirely convinced of the need for, we should be very explicit about what it does, and very careful in naming it. Regards, -- Rowan Collins [IMSoP]