Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77097 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10339 invoked from network); 8 Sep 2014 07:58:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2014 07:58:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=simonsimcity@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=simonsimcity@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.173 as permitted sender) X-PHP-List-Original-Sender: simonsimcity@gmail.com X-Host-Fingerprint: 209.85.223.173 mail-ie0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:54110] helo=mail-ie0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/02-26504-D816D045 for ; Mon, 08 Sep 2014 03:58:05 -0400 Received: by mail-ie0-f173.google.com with SMTP id lx4so17323589iec.18 for ; Mon, 08 Sep 2014 00:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=c3lXqfWaRW9Q8zbHQmlUXaDogjRlQWYs7+AQPBl44oA=; b=jBVK8toDAUjXfeW/M7hKs2fMsqwfKj8rcPosJk72MAP96hNxwc5kuSHWokZLLHJUxa JU9Pyc2TTLayv4su1pbMWU+Dalaq0wa7xjcp5qivSJyE1hgEteZLcr9dDORD22FqaFel +yY+hb7TrfhCyKQZtTaAlkSvgkmpTdVScrbZAZlJRzzxjvPDd+3ogEQHc81MJmacS+B6 /JLGBwuPSb+/Xr2eYVMpufthGkvafcz9XGKWGfFtHV4jIgQK2IQSffJRF1btpD5rLhzQ X0h3yIUXV6346q+Fyh/LWItfgd0m0hI/tNZOskx5bA0qaMnH9FIxCWP4ubgARzXyVmQ0 21fA== MIME-Version: 1.0 X-Received: by 10.42.81.146 with SMTP id z18mr325217ick.94.1410163082757; Mon, 08 Sep 2014 00:58:02 -0700 (PDT) Received: by 10.107.156.77 with HTTP; Mon, 8 Sep 2014 00:58:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 8 Sep 2014 09:58:02 +0200 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=90e6ba6146fc9f8c510502892db7 Subject: Re: [PHP-DEV] [RFC] Implicit isset() in Shorthand Ternary Operator From: simonsimcity@gmail.com (Simon Schick) --90e6ba6146fc9f8c510502892db7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Andrea I feel more like Sherif Ramadan. Even so I've quite often been in the same situation, I don't think it's a good solution to change something like that, just for the shorthand-operator. I think, the notice is really valuable when accessing the value and doing something with it - like myFunction($_GET['not_set']), but if you're just checking for the existence, I, too, think it is more annoying. My way was to suppress it by adding the silence-operator ;) I always used like: @$_GET['mykey'] ?: =E2=80=9D=E2=80=9D I can't come up with a good mid-way right now, but I don't think it's a good way to change this ONLY for the short-hand operator. Bye, Simon On Sat, Sep 6, 2014 at 2:02 AM, Andrea Faulds wrote: > Good evening, > > I=E2=80=99ve written an RFC and working patch which attempt to add this f= eature > which has been often requested: https://wiki.php.net/rfc/isset_ternary > > Thanks! > -- > Andrea Faulds > http://ajf.me/ > > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --90e6ba6146fc9f8c510502892db7--