Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 667 invoked by uid 1010); 29 Oct 2005 22:58:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 651 invoked from network); 29 Oct 2005 22:58:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Oct 2005 22:58:32 -0000 X-Host-Fingerprint: 81.223.215.50 81-223-215-50.innsbruck-mitte.xdsl-line.inode.at Windows 2000 SP2+, XP SP1 (seldom 98 4.10.2222) Received: from ([81.223.215.50:2471] helo=server.rrs.at) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id B1/52-02082-79EF3634 for ; Sat, 29 Oct 2005 18:58:31 -0400 Received: from [192.168.0.68] by rrs.at (MDaemon.PRO.v7.1.2.R) with ESMTP id md50000153159.msg for ; Sun, 30 Oct 2005 01:03:55 +0200 In-Reply-To: <4e36d31d0510291543p1234a090q1a3bdd1731a43bbd@mail.gmail.com> 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> <4e36d31d0510291543p1234a090q1a3bdd1731a43bbd@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-ID: <1615F1CC-4093-494A-A309-996479E52C4B@rrs.at> Cc: internals@lists.php.net Content-Transfer-Encoding: quoted-printable Date: Sun, 30 Oct 2005 00:57:26 +0200 To: Sebastian X-Mailer: Apple Mail (2.734) X-Authenticated-Sender: alpha@rrs.at X-Spam-Processed: server.rrs.at, Sun, 30 Oct 2005 01:03:55 +0200 (not processed: message from valid local sender) X-MDRemoteIP: 212.183.121.62 X-Return-Path: alpha@rrs.at X-MDaemon-Deliver-To: internals@lists.php.net X-MDAV-Processed: server.rrs.at, Sun, 30 Oct 2005 01:03:58 +0200 Subject: Re: [PHP-DEV] what happened to that new isset() like language From: alpha@rrs.at (Nico Edtinger) Hi! If you want something similar why not something that's similar to the =20= currently used $x =3D isset($x) ? $x :'x';. I don't think PHP has =20 something that can be written as ?? currently and it would be similar =20= to the current expression: $x =3D $x ?? 'x'; or $x ??=3D 'x'; Or if it =20= should be a single char =A7 chould be used - altough it looks ugly. I'd still prefer a named operator like the new instanceof. It's much =20 easier to read, can be found in the manual and it's meaning is clear =20 to none-PHP programmers. b4n, nico Am 30.10.2005 um 00:43 schrieb Sebastian: > I still think // and //=3D would be the most reasonable. They involve > the least amount of syntax and // looks similar to ||