Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88471 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3397 invoked from network); 24 Sep 2015 10:07:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Sep 2015 10:07:04 -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.180 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:34702] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/E7-33598-64BC3065 for ; Thu, 24 Sep 2015 06:07:03 -0400 Received: by wicfx3 with SMTP id fx3so20751249wic.1 for ; Thu, 24 Sep 2015 03:07:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=BhmJrqNnnGc+6ohE8o1UfX8ntMJKIWlVhMUgcB4srks=; b=G3p+mVu3rEUwuxpbiJNPTS6eV55YcI32TP2WT8q0hajuAum4h5VeIloNoEH7ckGXIO NBmISUl54at3fazOqE2l1PnKPdhYpwmv/fzASw3dq1RwxUBx0Hib92U9XKRlcGCwrlU9 7BM2aJ/O/59dxJAUh9hposrUXhjyExooos+da32cEefCvboIR998z+PYITWulZPrD+2O T2LYBNNHkTICFftl00p8qDqYzbCus4ZkcDZgHYBqJCOa0xw/ACzwU6BA/Us0HF9xE9Vq diRANiLKFwAT2b7awIjLBSw22XfwPDdkbCjxHKIcA3RzCU94hjPWH3NAETp0P8eNM1Z8 0jfQ== X-Received: by 10.180.186.98 with SMTP id fj2mr9666191wic.58.1443089219788; Thu, 24 Sep 2015 03:06:59 -0700 (PDT) Received: from [192.168.0.119] ([62.189.198.114]) by smtp.googlemail.com with ESMTPSA id kr10sm11562135wjc.25.2015.09.24.03.06.57 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 24 Sep 2015 03:06:59 -0700 (PDT) To: =?UTF-8?Q?Fran=c3=a7ois_Laupretre?= , Stig Bakken References: <8C74463E-DBA2-4015-8159-0B44D973387F@craigfrancis.co.uk> <55DE0907.6040904@gmail.com> <1F615BCD-1B9B-4C51-A210-869F1AA1F6E3@craigfrancis.co.uk> <55E5EBBF.6020803@gmail.com> <0BA3A129-D356-4781-B6DE-E2B5A7924AE2@craigfrancis.co.uk> <55E6EC36.6090301@gmail.com> <9AF329EC-99A5-412D-A52B-432627A5520F@gmail.com> <6F4D91EE-B56E-4B83-B1AF-598C3F6897FC@craigfrancis.co.uk> <55F07BA4.2000204@gmail.com> <55F6B911.9080400@gmail.com> <96BE7F01-D04B-483B-B1A3-B45CED6DFCDC@craigfrancis.co.uk> <55F6F08C.1020506@gmail.com> <0BEF6D82-CB5F-49F6-A3A4-3267924A0CDA@thesba.com> <56009C96.5090504@php.net> <56013228.50504@gmail.com> <5601E01E.6080606@php.net> <56027C79.9020404@gmail.com> <5602BFB3.7090707@php.net> <560316E1.8070002@php.net> Cc: internals@lists.php.net Message-ID: <5603CB24.3080307@gmail.com> Date: Thu, 24 Sep 2015 11:06:28 +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: <560316E1.8070002@php.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] PHP 7.1 - Address PHPSadness #28? From: rowan.collins@gmail.com (Rowan Collins) François Laupretre wrote on 23/09/2015 22:17: > Le 23/09/2015 18:37, Stig Bakken a écrit : >> >>> If they start replacing calls to >>> isset()/array_key_exists() with exists(), that's their choice and it >>> can >>> only improve overall readability. >> >> The thing is, it won't really improve overall readability, because the >> name exists() is still too vague. It may be obvious to the person who >> wrote the code (at least for the first two weeks), then you're really >> back into the same vagueness that isset() provides. > > I don't say it's more readable than isset(), I say that's more > readable than array_key_exists(). To be pedantic, you actually did say that, in the text quoted above: "replacing calls to isset() ... with exists() ... can only improve overall readability". Regardless, Stig's point stands, that exists() is a very general name, and the proposed function definition is also very all-inclusive, leading to the risk of hard-to-understand code. Regards, -- Rowan Collins [IMSoP]