Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19859 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15448 invoked by uid 1010); 31 Oct 2005 13:02:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15433 invoked from network); 31 Oct 2005 13:02:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2005 13:02:07 -0000 X-Host-Fingerprint: 160.9.128.16 dns1.lmu.ac.uk Received: from ([160.9.128.16:31475] helo=mrelay-a.lmu.ac.uk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 3A/FE-02082-DC516634 for ; Mon, 31 Oct 2005 08:02:05 -0500 Received: from localhost.lmu.ac.uk ([127.0.0.1] helo=localhost) by mrelay-a.lmu.ac.uk with esmtp (Exim 4.43) id 1EWZCn-00024C-ER for internals@lists.php.net; Mon, 31 Oct 2005 12:56:05 +0000 Received: from mrelay-a.lmu.ac.uk ([127.0.0.1]) by localhost (mrelay-a [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06648-04 for ; Mon, 31 Oct 2005 12:56:03 +0000 (GMT) Received: from leedsmet-exch1.leedsmet.ac.uk ([160.9.35.117]) by mrelay-a.lmu.ac.uk with esmtp (Exim 4.43) id 1EWZAy-00021Q-Cu for internals@lists.php.net; Mon, 31 Oct 2005 12:54:12 +0000 x-mimeole: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Mon, 31 Oct 2005 12:54:32 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] what happened to that new isset() like language Thread-Index: AcXc1BAnnaGPN+4BQeu3CLM7L7fP9wBRbG+A To: X-Virus-Scanned: by McAfee at Leeds Metropolitan University Subject: RE: [PHP-DEV] what happened to that new isset() like language From: M.Ford@leedsmet.ac.uk ("Ford, Mike") On 29 October 2005 22:56, Greg Beaver wrote: > For an operation as complicated as "use the first variable > that exists" > I would be most comfortable with: >=20 > $d =3D first-existing: $a, $b, $c; That's a horrible syntax, but a fantastic name for a language construct to = do the job. Even better might be (something like) first_isset($a, $b, $c) = which tells you precisely what's happening: you get the first value that pa= sses the isset() test. I also find the ?? / ??=3D suggestion very attractive - it would have been = my suggestion for a suitable operator. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211=20 To view the terms under which this email is distributed, please go to http:= //disclaimer.leedsmet.ac.uk/email.htm