Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84429 invoked from network); 23 Apr 2011 13:35:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Apr 2011 13:35:58 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:33964] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/82-55446-CB5D2BD4 for ; Sat, 23 Apr 2011 09:35:57 -0400 Received: by eyf5 with SMTP id 5so366772eyf.29 for ; Sat, 23 Apr 2011 06:35:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lD3FmY3rJzfL/Dsd54lFUPC2s4UCtUA2zqz3GaT9k6s=; b=Y0K28aJIPMOe7mNOp04HvDf2UemPXInKQDoqULn0a5M560mkJgoIjeSTIK1LsjoUue o6+W9YHRaeM3JWDG2IrAMvMtnVzV5XUVZaehFiRSU9NhOcULOpUcevZmMYSIJnNpNyjs dhgE/0r1wbZxdwjc0nng4l7z3CO93ujAZhvEU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=TrTHYNJSK2bmv88LIUJR69pNk+UEmo/QIA/x+d1ZkgIJ7u0seto5RFednnHEzsHW1L hiIC4b9jMSI116tY3y+K7g29hMKzE52zjwp7AmBTqn767eDvaqYPap3hfuY/j9Ov217d G6wtucxTv4AIs4fAfHolNyHpGEdcvWzmtdN3E= MIME-Version: 1.0 Received: by 10.14.42.195 with SMTP id j43mr745278eeb.176.1303565754114; Sat, 23 Apr 2011 06:35:54 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.119.69 with HTTP; Sat, 23 Apr 2011 06:35:53 -0700 (PDT) In-Reply-To: References: <718216446.20110408143441@cypressintegrated.com> <4DA0E71C.9030008@gmail.com> <4DA63ED8.4080402@yahoo.com.au> <4DA6F2BC.10706@yahoo.com.au> <4DA6FB03.9040404@yahoo.com.au> <4DB23915.1040503@yahoo.com.au> <4DB241FA.9040707@yahoo.com.au> Date: Sat, 23 Apr 2011 15:35:53 +0200 X-Google-Sender-Auth: pCuxZ9f8lNkOTZy5tC86BqYX6AQ Message-ID: To: Hannes Landeholm Cc: Ben Schmidt , internals@lists.php.net Content-Type: multipart/alternative; boundary=000e0cd5d0aeb7235504a1960d07 Subject: Re: [PHP-DEV] Implicit isset/isempty check on short-ternary operator From: info@tyrael.hu (Ferenc Kovacs) --000e0cd5d0aeb7235504a1960d07 Content-Type: text/plain; charset=UTF-8 On Sat, Apr 23, 2011 at 1:21 PM, Hannes Landeholm wrote: > I was planning on replying to the "coalesce" suggestion but you really took > my concerns and stated them much better than I could have myself, plus a > couple of other concerns I didn't even think about. > > To respond to Arpad Ray's statement: > > "To elaborate, I'd probably think this code was an unlikely series of > typos, > or an encoding error:" > > In my opinion that's a good thing. Then you might actually look it up in > the > documentation instead of making the assumption that the syntax has > function-like properties just because it looks like a function. For > example, > it took me at least 1 year from first encountering empty() until > understanding that it's not a normal function and actually a language > construct that suppresses unset notices. And I'm a pretty seasoned > programmer. There's only one thing worse than magic: hidden magic. > > and we should try to avoid adding more magic where we can. Tyrael --000e0cd5d0aeb7235504a1960d07--