Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79559 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21492 invoked from network); 11 Dec 2014 07:33:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Dec 2014 07:33:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.173 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.214.173 mail-ob0-f173.google.com Received: from [209.85.214.173] ([209.85.214.173:52170] helo=mail-ob0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F0/A2-05320-1E849845 for ; Thu, 11 Dec 2014 02:33:54 -0500 Received: by mail-ob0-f173.google.com with SMTP id uy5so1768501obc.4 for ; Wed, 10 Dec 2014 23:33:50 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=1QWhImL0n0YFKGjZ3LS9OEJtyxjWprfZa8fVar/2br8=; b=ByiTuYyxMPO3+skioDJcKoRYHRxKslgwp6nPyr+2fDdeULd1OQR9P76SSgi0N7CEFh /UeOQUU65Z2yOurwYH//mPlUIPF8lURCAqXWkUcYgBuoGFR4tHJ7u/nPCl2GNN781wk3 Jv6muk4VuGzvS+mBeWXMKLUVF8J+tXrq/f9Sv0znY4fvyfDq86zWC8z9X5vUGs5z34d4 4K04Sk3XWOZ2fabm4lE4VucfWdeRHGch0q9SMdyZXMPGRjngODHv2lKYQuoFGYdXY0Qn gJh2gq7+cbJ6cUth4V5ddK7ZlrZBVrsGLhmzLw4ZZ/UH3zwBVJLyB1m5hON8usvMmOzO XP9w== X-Received: by 10.60.146.172 with SMTP id td12mr5311186oeb.23.1418283230662; Wed, 10 Dec 2014 23:33:50 -0800 (PST) Received: from Stas-Air.local (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id f10sm167823obn.11.2014.12.10.23.33.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Dec 2014 23:33:50 -0800 (PST) Message-ID: <548948D9.8000809@gmail.com> Date: Wed, 10 Dec 2014 23:33:45 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Josh Watzman , Robert Stoll CC: PHP internals References: <95A581EE-A062-4926-BE44-BCA87FC9B356@fb.com> <000b01d01494$bb1c6520$31552f60$@tutteli.ch> <002801d014b8$151ec360$3f5c4a20$@tutteli.ch> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Nullsafe calls From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > I think it's confusing the other way, and "instead of raising a fatal > for calling a method on null, it returns null" is just as simple of > an explanation. What is confusing in "no call is made, so nothing is evaluated" or in "as soon as we see null, we stop and return null"? I can not believe anybody smart enough to use a computer could be genuinely confused by this. > All of that said: it's not clear to me that this actually matters > that much. I wasn't able to quickly find an example because the vast I think it does matter, and weird magic should not be a part of the language. -- Stas Malyshev smalyshev@gmail.com