Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77684 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27824 invoked from network); 26 Sep 2014 18:42:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Sep 2014 18:42:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.45 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.45 mail-wg0-f45.google.com Received: from [74.125.82.45] ([74.125.82.45:45150] helo=mail-wg0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/44-02658-393B5245 for ; Fri, 26 Sep 2014 14:42:28 -0400 Received: by mail-wg0-f45.google.com with SMTP id x13so9568136wgg.4 for ; Fri, 26 Sep 2014 11:42:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:subject:from:date:to:cc :message-id; bh=hleMY1h2njBi1cuNSeRO9BtoOJhh1hCpMt+gUqWuC+8=; b=yUh9Yr8+28nFZxyW721u3XEVZuBJBzp+uztied750MC1AnIfZcZ0+iSJ9PCrSOxfIc NmQMb4SUFErRSGusbo5RJztGqiMAVBHAV2bjbTKs+N1F8mjM+HpG1orFa8uIam3uj4mt KxmMFJuJ4oFnw47vthfg175NIUbwr1/lQIuU9bcGl46Z5NNweZ73Ix84DyEq4JUmrfvb O05Hwk1Gh9/5kSQ8DvhqwexOKxta0B/uRpTk4xh9bRsNGbVw/Htcj7jsg0wKcst08mVk pxx0xmY4eWkmQWmB87pmAb3dwyyw5+TczYrLi1bd2gyFqdpFEUyKQDOCHeknpCjVPb9+ lMyg== X-Received: by 10.180.100.202 with SMTP id fa10mr49042950wib.32.1411756944702; Fri, 26 Sep 2014 11:42:24 -0700 (PDT) Received: from [10.151.254.244] ([213.205.241.33]) by mx.google.com with ESMTPSA id om1sm7051708wjc.42.2014.09.26.11.42.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Sep 2014 11:42:24 -0700 (PDT) User-Agent: K-9 Mail for Android In-Reply-To: <2876FD14-51DF-4CD2-A4DE-E4DFAC846BC2@strojny.net> References: <54233506.8080102@gmail.com> <094CB804-0F9F-44D4-BCA2-4D7612E92C10@strojny.net> <54259039.5020809@gmail.com> <2876FD14-51DF-4CD2-A4DE-E4DFAC846BC2@strojny.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Date: Fri, 26 Sep 2014 19:42:19 +0100 To: Lars Strojny CC: internals@lists.php.net Message-ID: <3be6dc35-be0a-4ceb-9e79-27deb3502021@email.android.com> Subject: Re: [PHP-DEV] Little switch improvement: get the used variable From: rowan.collins@gmail.com (Rowan Collins) On 26 September 2014 18:41:02 GMT+01:00, Lars Strojny wrote: >That is exactly my point: instead of "optimising" the switch/case >construct which is good enough as if/elseif/else replacement I feel our >time would be better spent on thinking of polymorphism, guards and >pattern matching. That sounds a lot like the old "why are you adding features rather than fixing bugs" argument. There are any number of features we *could* add, but it's not like we have to pick one at a time.