Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19828 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94408 invoked by uid 1010); 29 Oct 2005 22:43:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94393 invoked from network); 29 Oct 2005 22:43:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2005 22:43:25 -0000 X-Host-Fingerprint: 64.233.162.202 zproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.162.202:40585] helo=zproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8B/61-02082-C0BF3634 for ; Sat, 29 Oct 2005 18:43:24 -0400 Received: by zproxy.gmail.com with SMTP id q3so648498nzb for ; Sat, 29 Oct 2005 15:43:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LVaOA8ajIPZqwqF3bw1ICzPJokSG7p2LFB06HnFxDoB34uqAZBD/VW4h4//JDrjVyT1fQHM1lzqoao+gqRSbzFcJbLJCdCJayzzKz1NjXca5XCFHBH7QlZcwRDhYyA/3Qgw2tQ/OKMTxhHCvdvwfm7eaka4qGSoYs6/IV4n6COc= Received: by 10.64.210.16 with SMTP id i16mr417373qbg; Sat, 29 Oct 2005 15:43:20 -0700 (PDT) Received: by 10.64.183.1 with HTTP; Sat, 29 Oct 2005 15:43:20 -0700 (PDT) Message-ID: <4e36d31d0510291543p1234a090q1a3bdd1731a43bbd@mail.gmail.com> Date: Sat, 29 Oct 2005 15:43:20 -0700 To: Greg Beaver Cc: internals@lists.php.net In-Reply-To: <4363F000.1030902@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4362C5F4.8090004@safesearching.com> <4e36d31d0510281847m3f54c70dy8b2a0679fa3c6cec@mail.gmail.com> <4362DFAB.1090701@safesearching.com> <43630958.4060406@php.net> <000e01c5dccc$e81f9470$6c051fac@lighthammer> <4363F000.1030902@php.net> Subject: Re: [PHP-DEV] what happened to that new isset() like language From: buddhahead@gmail.com (Sebastian) I still think // and //=3D would be the most reasonable. They involve the least amount of syntax and // looks similar to || On 10/29/05, Greg Beaver wrote: > Sara Golemon wrote: > >>> Evaluating an idea based on it's syntactic similarities to other > >>> languages is complete and utter nonsense. It has nothing to with bein= g > >>> like language Xyz. It has to do with familiarity to language construc= ts. > >>> One already understands the idea of 'this || that'. It's certainly > >> > >> > >> I'll throw the water on this one: > >> > >> >> $c =3D 0; > >> $a =3D 1; > >> var_dump($c || $a); > >> ?> > >> > >> Changing true into false consitutes a rather severe BC break :). > >> > > How about ||| and |||=3D ? > > I don't think the meaning of this operator is obvious. Right now, the > only operators whose meaning are not immediately obvious (in my eyes) are= : > > @ - error suppression > & - make reference in some cases, bitwise and in others > ^ - bitwise xor but what are you gonna do :) > > For an operation as complicated as "use the first variable that exists" > I would be most comfortable with: > > $d =3D first-existing: $a, $b, $c; > > This way, no conflict with functions (parse error in previous php > versions), and it is extremely clear. The parser would look for > > T_FIRSTEXISTING ':' existing_varlist > > in the expression section, and of course defining existing_varlist as: > > existing_varlist: > variable > | existing_varlist ',' variable > ; > > Greg > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- ------------- buddhahead@gmail.com