Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79575 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65139 invoked from network); 11 Dec 2014 16:00:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Dec 2014 16:00:34 -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.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:43403] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/D0-58820-1AFB9845 for ; Thu, 11 Dec 2014 11:00:34 -0500 Received: by mail-wi0-f177.google.com with SMTP id l15so9135593wiw.10 for ; Thu, 11 Dec 2014 08:00:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=szOFzrLfcIFEEe1xk5jD37ecf4PTtQ9u6pEXt7bPR9s=; b=BSFwp6Hne7O2aeQG5DMi8ceckWKHpRQaL+tcuIsVmN5lPRBadPJupVxOPK5FrZHLHy gwqgenbRDrUY/W1U9i0IugKowe3chze/+vjNd49o31WIIzXWjUOCrclP/hryEJYW402K RXbxqJCrskq1yZvF9qQStkOge6pRHWZNfdiLK74oSxnySM5S5RFdQxfsXB6442KYNZvh VIVziKkVqqC5B19Lrk6A4T6GliksuR+8pkkKaGEzB42omvKFuZcTt8IqYandLqhwxnca xkKhqJau8PCPZt7b07tHgoJTFrI8Hxc8+YElgezqFT6oAlIEqk8r3CDW6xZmYbKqH5/d QtPw== X-Received: by 10.195.12.76 with SMTP id eo12mr18434455wjd.22.1418313630589; Thu, 11 Dec 2014 08:00:30 -0800 (PST) Received: from [192.168.0.148] ([62.189.198.114]) by mx.google.com with ESMTPSA id dg7sm2814950wib.24.2014.12.11.08.00.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Dec 2014 08:00:29 -0800 (PST) Message-ID: <5489BF99.2070505@gmail.com> Date: Thu, 11 Dec 2014 16:00:25 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: internals@lists.php.net References: <95A581EE-A062-4926-BE44-BCA87FC9B356@fb.com> <9230CB24-22FC-4A0E-A9D5-F02523B65A02@ajf.me> <54894936.9030003@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Nullsafe calls From: rowan.collins@gmail.com (Rowan Collins) guilhermeblanco@gmail.com wrote on 11/12/2014 15:57: > Not trying to demerit the proposal, but accepting ?-> and black magic just > seems wrong, very wrong. > You need to write defensive code, not rely on the language to do that for > you. But surely if you're consciously deciding to use this feature, it *is* defensive code - just defensive code involving less copy-and-paste of if ( ! is_null($blah) )...