Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:19003 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51268 invoked by uid 1010); 15 Sep 2005 18:21:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51253 invoked from network); 15 Sep 2005 18:21:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2005 18:21:54 -0000 X-Host-Fingerprint: 212.238.144.71 korving.demon.nl Received: from ([212.238.144.71:2084] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 4E/EA-41173-2CBB9234 for ; Thu, 15 Sep 2005 14:21:54 -0400 Message-ID: <4E.EA.41173.2CBB9234@pb1.pair.com> To: internals@lists.php.net References: <42FCE0E4.604@lerdorf.com> <43281520.4000209@metropolis-ag.de> Date: Thu, 15 Sep 2005 20:20:20 +0200 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Posted-By: 212.238.144.71 Subject: Re: [PHP-DEV] PHP 6.0 Wishlist From: r.korving@xit.nl ("Ron Korving") "Mike Bretz" wrote in message news:43281520.4000209@metropolis-ag.de... > Also an useful feature would be "const" on function parameters. Hmm, I like that ;) That may even provide a performance increasing opportunity... I have another idea I came up with today: regular expression switches, but it would be difficult without adding to the syntax. switch ($str) { case "abc": echo "it was ABC!\n"; break; regcase "/^[0-9]+$/i": echo "it was a number!\n"; break; default: echo "it was no number :-(\n"; break; } Just an idea ;) Ron