Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68248 invoked by uid 1010); 8 Jul 2004 15:13:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 68211 invoked from network); 8 Jul 2004 15:13:39 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.117) by pb1.pair.com with SMTP; 8 Jul 2004 15:13:39 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id AD8616D876; Thu, 8 Jul 2004 17:13:38 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id 7AF346D875; Thu, 8 Jul 2004 17:13:37 +0200 (CEST) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by xaxa.search.ch (Postfix) with ESMTP id EACF96CFC8; Thu, 8 Jul 2004 17:13:36 +0200 (CEST) Message-ID: <40ED64A0.7050305@cschneid.com> Date: Thu, 08 Jul 2004 17:13:36 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en, de-ch MIME-Version: 1.0 To: Jason Garber Cc: internals@lists.php.net, contact_marcos@yahoo.es References: <5.1.0.14.0.20040707203931.02fa6200@mail.ionzoft.com> In-Reply-To: <5.1.0.14.0.20040707203931.02fa6200@mail.ionzoft.com> X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: [PHP-DEV] what happened to that new isset() like language From: cschneid@cschneid.com (Christian Schneider) Jason Garber wrote: > What we basically settled on was to use this syntax (as a new language > construct): > $x = ifsetor(mixed variable, mixed default); Before it gets forgotten: I still think that $x = ifsetor(mixed var, mixed var [, ...]); with expressions in all parts is the way to go. Example usage: $a = ifsetor($_REQUEST['x'], $db->get('x'), 'default_x'); This needs some work to disable warnings because of unset values inside the ifsetor() but would provide a lot of value. And I also think that the name ifsetor has to be reevaluated :-) - Chris