220 33711 <5a36b655-b2a9-4be2-8599-465810cfd1b3@isocpp.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: olafvdspek@gmail.com
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: A more advanced switch
Date: Wed, 9 Aug 2017 04:55:37 -0700 (PDT)
Lines: 57
Approved: news@gmane.org
Message-ID: <5a36b655-b2a9-4be2-8599-465810cfd1b3@isocpp.org>
References: <f8c908e2-d06f-4cd1-bda0-fe2b97fd21f1@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_3735_473748656.1502279738054"
X-Trace: blaine.gmane.org 1502279739 30631 195.159.176.226 (9 Aug 2017 11:55:39 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 9 Aug 2017 11:55:39 +0000 (UTC)
Cc: costelnistor12@gmail.com
To: ISO C++ Standard - Future Proposals <std-proposals@isocpp.org>
Original-X-From: std-proposals+bncBC5NB45SSABBBOXQVPGAKGQECACQ4AY@isocpp.org Wed Aug 09 13:55:35 2017
Return-path: <std-proposals+bncBC5NB45SSABBBOXQVPGAKGQECACQ4AY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-vk0-f72.google.com ([209.85.213.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC5NB45SSABBBOXQVPGAKGQECACQ4AY@isocpp.org>)
	id 1dfPaI-0007da-42
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Aug 2017 13:55:34 +0200
Original-Received: by mail-vk0-f72.google.com with SMTP id s199sf22945321vke.10
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 04:55:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=1MLaNMa+FL6Qw+6hUjK1Qf754eh5/f/rBaoAK5D9Pmo=;
        b=zDBglXfOx4/DrLxMcSOo9HCo31rIH7giKn0q8s8u0dmRvfuh7LV5q2vUFDbGHaUmMp
         EGeV0LcmUVEWUZedwX+Dyr7g9OeFh7y5ZUmnWGLS5rxoLkKvXlgItZYvgFN8am/fUtA4
         j8VxHTERlV5Nz01dG3kdFeXzkOhlkEMz3tiaVvamsI+oVpNT+DerCQSqFMEFpLmdp7v9
         p20HX6/f0UlWgOj3cGzN6WoBBtZPUfnlndDmSjTo054S+jRuZk3onzVAbAJBsrcoAggr
         9wBfV1iwlZzhGhGzzeJn9kgLVHCk480mUprroOPTv8yfufzYEsYN38mc3IoGQY23Zypa
         8BBg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20161025;
        h=date:from:to:cc:message-id:in-reply-to:references:subject
         :mime-version:x-original-sender:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=1MLaNMa+FL6Qw+6hUjK1Qf754eh5/f/rBaoAK5D9Pmo=;
        b=Y7p5fgGNNKfHnC4c4fzzp7rCy0wbCSlfYAAu1GWYO7BK7/kZlSUm4twl7Q/Glqh4Of
         9QNZsaZFJR1C3BNQZFLGh2gH2oNKpsUenJib8YRFBPBN9YF8H4HzVy/pthfYFwcS4Cuq
         /mx1vCMzi6bUg1A3tKx+ItfLPV9zqg7zsQZyUtJkM2MCWZyfveRWMzPZC0SmuCJUKwUH
         kBj7RXjhjldafdg1NhheQSWN9RUUuvUWQf70FWrMO/p1qnRkky1qzExStaKG2jASisa0
         wXF/MxMzKYOjurYXD/cUvyr/w+ALdpAYLoYvGH4NOKytkJx+tHQwQPVyTWivG66zNT/I
         tI7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:date:from:to:cc:message-id:in-reply-to
         :references:subject:mime-version:x-original-sender:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=1MLaNMa+FL6Qw+6hUjK1Qf754eh5/f/rBaoAK5D9Pmo=;
        b=FQ7b6w3Q3JYUVBIe4SKiSGnCacldCb5emqiLsdN3xePwE5/JquSGBgHm4ArbV7NNrw
         HfknBFWG5hs93PmbhHZjtZ57PyU5vyEGEwPfzNe186XV/gsYEcip+mmgtIIgpPfvIB2R
         omTymTShdB7O7YDTrB1e71zzmWY7r/GZ89nMklz3J5HiR5pyAOA7BSwV0PcQp6mW0ORT
         uCZqr9tpHKQExBd9xqGfhX08+JUr/k5q3Yzc+LXG5eB/9086Fp5vc6xvobiiEO+ty0j/
         f7AEtZ2JLxSwR3JlYsUiljVlGhn68fdtyhoaoQd7n+KooIMXAIGFr9/zNPOTGUUXGYsh
         5vrA==
X-Gm-Message-State: AHYfb5hVWeMtNAgp1MtnTL2FYuv+5a3e6pzGzeAsuFHya83pgSUjTV2R
	2Q8dgWcTqld3TItq
X-Received: by 10.31.12.210 with SMTP id 201mr4345246vkm.46.1502279739828;
        Wed, 09 Aug 2017 04:55:39 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.107.132.233 with SMTP id o102ls4771308ioi.2.gmail; Wed, 09 Aug
 2017 04:55:38 -0700 (PDT)
X-Received: by 10.31.153.84 with SMTP id b81mr40392vke.14.1502279738516;
        Wed, 09 Aug 2017 04:55:38 -0700 (PDT)
In-Reply-To: <f8c908e2-d06f-4cd1-bda0-fe2b97fd21f1@isocpp.org>
X-Original-Sender: olafvdspek@gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Google-Group-Id: 399137483710
List-Post: <https://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <https://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <https://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>,
 <mailto:std-proposals+subscribe@isocpp.org>
List-Unsubscribe: <mailto:googlegroups-manage+399137483710+unsubscribe@googlegroups.com>,
 <https://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:33711
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33711>

------=_Part_3735_473748656.1502279738054
Content-Type: multipart/alternative; 
	boundary="----=_Part_3736_1460796780.1502279738054"

------=_Part_3736_1460796780.1502279738054
Content-Type: text/plain; charset="UTF-8"

I'd like to see a generalization of switch, allowing it to be used with for 
example std::string (view).

std::string s;

switch (s)
{
case "A": 
case "B": 
default:
}

No syntax updates necessary.

-- 
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
To view this discussion on the web visit https://groups.google.com/a/isocpp.org/d/msgid/std-proposals/5a36b655-b2a9-4be2-8599-465810cfd1b3%40isocpp.org.

------=_Part_3736_1460796780.1502279738054
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I&#39;d like to see a generalization of switch, allowing i=
t to be used with for example std::string (view).<div><br></div><div>std::s=
tring s;</div><div><br></div><div>switch (s)</div><div>{</div><div>case &qu=
ot;A&quot;:=C2=A0</div><div>case &quot;B&quot;:=C2=A0</div><div>default:</d=
iv><div>}</div><div><br></div><div>No syntax updates necessary.</div></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
To view this discussion on the web visit <a href=3D"https://groups.google.c=
om/a/isocpp.org/d/msgid/std-proposals/5a36b655-b2a9-4be2-8599-465810cfd1b3%=
40isocpp.org?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.=
com/a/isocpp.org/d/msgid/std-proposals/5a36b655-b2a9-4be2-8599-465810cfd1b3=
%40isocpp.org</a>.<br />

------=_Part_3736_1460796780.1502279738054--

------=_Part_3735_473748656.1502279738054--

.
