Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70429 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98834 invoked from network); 26 Nov 2013 20:12:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2013 20:12:06 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.172 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 74.125.82.172 mail-we0-f172.google.com Received: from [74.125.82.172] ([74.125.82.172:51932] helo=mail-we0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0A/1C-39355-59005925 for ; Tue, 26 Nov 2013 15:12:06 -0500 Received: by mail-we0-f172.google.com with SMTP id w62so190399wes.31 for ; Tue, 26 Nov 2013 12:12:03 -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=PZS9hKAN/rYt+DVRjFzIehvbZAVn5a2TG1FrW8PEzVU=; b=NR+RfoFxiRzRlX1HYkTxwTMk0OPprsuQNkv9XzW3l0ibtIUQNyhp9wPj3F7ipVAq6G BVlCv7bU4VvfyBgLUgDbm4ebCGLqRdxJAPLOgzdYGZ1fe1zrpG+RjUK4sHOjK4jzHcBB Yynsx65P6Skwzo8l3tqaPtQsWMKDyh2wy7qwNBOk1EE/Ouv/TQLXbQ3ITcp13A7mL7Dx vIPo7X2cMZpGc5c2eLTDM+Q2hNqlk6LY98JypVGm0UJdmBOkebsOXl3gRhjcZL5t3ntN /c2PnbFgnDNe24WyPoMwqtNg+Inx+OcrCEebWsyHYYiz/X2ikImRBlmBri3voj3BeVaH TtrA== X-Received: by 10.180.106.41 with SMTP id gr9mr17323662wib.41.1385496723043; Tue, 26 Nov 2013 12:12:03 -0800 (PST) Received: from [192.168.1.27] (93.Red-88-24-182.staticIP.rima-tde.net. [88.24.182.93]) by mx.google.com with ESMTPSA id w20sm63417122wia.5.2013.11.26.12.12.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Nov 2013 12:12:02 -0800 (PST) Message-ID: <52950090.20505@gmail.com> Date: Tue, 26 Nov 2013 21:12:00 +0100 User-Agent: Thunderbird MIME-Version: 1.0 To: Pete Boere CC: Jezz Goodwin , PHP Internals List References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [Proposal] Modification to ?: functionality From: keisial@gmail.com (=?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?=) On 26/11/13 20:42, Pete Boere wrote: >> My favourite one listed so far is: >> >> $foo ?= 'default'; > I'd second that. +1 Bryan wrote: > I also thought about the fact that I often write a utility function to > provide this functionality in my own code. The difference there is that I > can remove the check and get the notices when debugging something. If this > change were part of the language, that wouldn't be possible. > > Bryan It would be easy for xdebug to provide a setting enabling the notice.