Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77504 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51363 invoked from network); 23 Sep 2014 07:29:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 07:29:43 -0000 Authentication-Results: pb1.pair.com header.from=figureonecpr@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=figureonecpr@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.67 as permitted sender) X-PHP-List-Original-Sender: figureonecpr@gmail.com X-Host-Fingerprint: 74.125.82.67 mail-wg0-f67.google.com Received: from [74.125.82.67] ([74.125.82.67:36910] helo=mail-wg0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/46-09206-76121245 for ; Tue, 23 Sep 2014 03:29:43 -0400 Received: by mail-wg0-f67.google.com with SMTP id a1so894843wgh.6 for ; Tue, 23 Sep 2014 00:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=poYgdztovSDsv6wJHzTZvJpE6uAui6Q2mouxej78KHI=; b=tPyskmGJ58t+adypW6TlmKVbJIMj2L8vROa1SDOYc9PtAbCG/n+vdpfslUuH6usK+b QomficfFPqOW3U4WzAnCtqrz7lgrhfIlD9f6r4JWB77W6xyIVqYTHEsHunzCrAjma1fX ERCwrc4BxsFGyqRx4YCQ/v0beWf9Ba56yI5nXCbqcH/7UItZ0+NvTEvct0LTW97m6qtg 4mZjGuEXntaJGxO07OWwwg7HRF+LBv9mlbC1jjc07AF6+RP5cPBZCXjcaTUUPHJXdyyC Ea0raOvWros7Mf7D1/y9PdkofUzOcm/RGcqthNasP8DDr8PnRKEMNWiBBdwAmaUyJOl/ 4Y9g== MIME-Version: 1.0 X-Received: by 10.180.231.9 with SMTP id tc9mr371524wic.58.1411457380866; Tue, 23 Sep 2014 00:29:40 -0700 (PDT) Received: by 10.216.194.132 with HTTP; Tue, 23 Sep 2014 00:29:40 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Sep 2014 03:29:40 -0400 Message-ID: Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Little switch improvement: get the used variable From: figureonecpr@gmail.com (Sanford Whiteman) Hi Martin, > The `get_the_used_switch_variable()` is just a placeholder, name can be > changed to something natural...maybe a constant. I feel this has diminished utility once you consider that the "switch variable" is actually an expression and could well include multiple $variables. Plus there's also the pattern switch(true) { } where the interesting variables appear in case statements. Hard for me to see the justification, but maybe I'm missing it. My $0.02... -- Sandy