220 33528 <ols5p7$lha$1@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Bo Persson <bop@gmb.dk>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: A more advanced switch
Date: Wed, 2 Aug 2017 11:25:01 +0200
Lines: 23
Approved: news@gmane.org
Message-ID: <ols5p7$lha$1@blaine.gmane.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: text/plain; charset="UTF-8"; format=flowed
X-Trace: blaine.gmane.org 1501666220 21652 195.159.176.226 (2 Aug 2017 09:30:20 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 2 Aug 2017 09:30:20 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCZ6RLW3UIKBBI5XQ3GAKGQEZUXGIIY@isocpp.org Wed Aug 02 11:30:13 2017
Return-path: <std-proposals+bncBCZ6RLW3UIKBBI5XQ3GAKGQEZUXGIIY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f71.google.com ([209.85.215.71])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCZ6RLW3UIKBBI5XQ3GAKGQEZUXGIIY@isocpp.org>)
	id 1dcpyg-0004rf-IV
	for gclcip-std-proposals@m.gmane.org; Wed, 02 Aug 2017 11:30:06 +0200
Original-Received: by mail-lf0-f71.google.com with SMTP id g25sf9703134lfh.13
        for <gclcip-std-proposals@m.gmane.org>; Wed, 02 Aug 2017 02:30:13 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1501666213; cv=pass;
        d=google.com; s=arc-20160816;
        b=AAVzgQc0eyiNk2IuZajTmopyuinWo+vpQT3pmlNr9pdALqtbDoLXdYazWEWstmat1B
         pS70rY2pb1mL16WBdKdKktgQc47M5MEPPV6kalkEQwmKkm4QtiIY0HoWV4AAiXe1KKa7
         LFBgZRKlyaxI1dbVqBL1ptz6l0WjucR5AUXvi6Y9dwbIESogXW7CYaOrfXGi1/Q+ev6l
         t/1hJ22dZrXe2LsnbCAsiRTXkvZ9bwTiO4WIn/IP940PqZrAfsD2QL9hRMgsqspuAJj5
         PF7tQZ7rTtMIm+zL4HMR+OfF4OhipDYVo41ZFI7b6ans8GxkJvYbH/3EAru8z3c9Xcgy
         psOA==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post
         :list-id:mailing-list:precedence:reply-to:content-language
         :in-reply-to:user-agent:mime-version:references:message-id:lines
         :date:subject:from:to:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=Xb3ISZYVMbLa8qPAW7ZklQyRVr+1DOwB2fNmJXXEkAs=;
        b=uBnLhzOzq38Qyn6n5gCaOMjgt5yKWjJcg0fz+XSdJBooDLVAkT4/AcvZSf1xIrFVjh
         TfqZcLMHKZu5xpZ+HBZIAl+Yj4X6KdH8TlArW4qfWghkNq9nm1NRCGiHAKWobBhB4IVN
         p5U9uKDczHhAaQqZYBo3nEvXQb8vh7gNHCJeDpTP5m9r8qZ39xZE+gYLu6KCIM3q0brx
         5haiKpQ6HpeImVpdtEnOcc06GtARsuojg90EwwgZ/OgoYIKT+iEVrJ4lDy3U3Rx3J+HV
         rfZCQz0UqLO3HYRlkmXFF7r5QGrkCXgN8HQkfnrSXGmzujfLIFHtk2kGBy2QJCAyPYNE
         cx2w 
ARC-Authentication-Results: i=2; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=to:from:subject:date:lines:message-id:references:mime-version
         :user-agent:in-reply-to:content-language:x-original-sender
         :x-original-authentication-results:reply-to:precedence:mailing-list
         :list-id:list-post:list-help:list-archive:list-subscribe
         :list-unsubscribe;
        bh=Xb3ISZYVMbLa8qPAW7ZklQyRVr+1DOwB2fNmJXXEkAs=;
        b=tEeZNCGR01BYrS386VQJdCnOaF+yb/fud1pWYVBum7m4Ut4p2bA6C4wT7/8KCM1ipQ
         VHMEDisee/WCVCEOEzUzhCHuxC80PIucXJ3Mj7qWliHWh734M4aBT57b529EXEnb25Ju
         YtZ3F8Rhbww9BCzczI2xTFxfu4DepUsHe6s6ADDW2vSQI80zoi9uqXsWUlvOcg0q1rvz
         kz6xKK9dJwNelhEjjrZjtA4Pszhm0Sysf9yMBW0e8IZgGaJUa6es5XBOVroyGT51Ujqo
         XkitPkcrYqUfvqQ4lnzLwmy8Q7CJvD5cTpFYzF30X1vkK8rmEAlNqKVU4y7TGqVZk9wB
         ubYg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent:in-reply-to:content-language
         :x-original-sender:x-original-authentication-results:reply-to
         :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post
         :list-help:list-archive:list-subscribe:list-unsubscribe;
        bh=Xb3ISZYVMbLa8qPAW7ZklQyRVr+1DOwB2fNmJXXEkAs=;
        b=IevzWdiw1FRhWBOmOgDw0XsC02nFq3CbccBg+X/GBdTjUsKooRi24Gmva900aRDDX7
         COXiTOaGJp/slr3PS+n22hAl7ePI0n0Iwcu4KZjEGrZvNQpLnWh7b+W9Jw49gCmLhn+H
         A/9v5actxJeEQfH4pgTLyM0NbCeQfSim8c1zd3rIDiWC4+GhFYdytLA3DZTfn/N2yEHZ
         T/PPoTlsoN4rwNluKCHqS03Skt+hEVcH7GbdRxbSIwKGC7N6zZWZRmpiLtHIQusZu9f8
         1hbS/Te5MaQFqLtsLLUUjDBcj3L0Y5MrrVaoFTRZuL1/et5JO6+GXN5Lgyd0Xdistdzn
     
X-Gm-Message-State: AIVw112fmopzLClf1kdmnbTbx7/ebR4gTAGoMxsB2f4Kzjd23q+jDUcs
	jcUAkXul+IE2lw==
X-Received: by 10.25.166.210 with SMTP id p201mr2364073lfe.9.1501666212879;
        Wed, 02 Aug 2017 02:30:12 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.158.213 with SMTP id h204ls445436lfe.27.gmail; Wed, 02 Aug
 2017 02:30:11 -0700 (PDT)
X-Received: by 10.25.19.195 with SMTP id 64mr7818211lft.11.1501666211479;
        Wed, 02 Aug 2017 02:30:11 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1501666211; cv=none;
        d=google.com; s=arc-20160816;
        b=LcLwAZHL63mrPENxQCv9WB4GCGTe9G0tz38kIeIcSdMOP2QZvbkXrm7EDA+HjBhOg6
         AO1Gyss4aIcQVYgWB4QBVIJc8QtXRYFKg69BWNnkGZ7UByluklS0Bm9HP3OwMh356MxU
         bGxAd2dOZNWwzq5MH4jmLsAKS95wKL0+svx6I0MkRAms6D19U+xG/0IhWr6nmIz5kNPx
         hjeLvXvnbQkeHYjPgihXtP/1qwp/FIRqvtQFqrFHHzQun3znJSbVOsw2EED/kqSZVL8C
         v2fnvAG2Shei/dwMSBvKIpH1wqhpwCD7vm9WA+M9J10JSvlqehW17bu/qN/yXzxQUCQd
         hLYQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-language:in-reply-to:user-agent:content-transfer-encoding
         :mime-version:references:message-id:lines:date:subject:from:to
         :arc-authentication-results;
        bh=FNJuHyWNTHpuyUeSLSu1gyv9j5iOyp0R2PqI4k6Newk=;
        b=VASH71WOm2uKuH/u3F8jwjseQBD3S+1wht5U0pEmHgG4BLen3svwlBM1TtEVzLpoQ+
         0it9wtuOiwz/wciL7oOyWOnjBjRiE9v9PlAnH7ICN93bKNvntWqqwnDR7O1XqFq2gRKU
         HymPavmy3QODVM5BlNDDEhuComPXEygtAS/wP3VUI8U/6V5KtLKCHe42zGA8Gcetva62
         M6kiKs9zvr+Z3NOHNTQGWzFq8pd7t7o55VvW48pS+jRgHuBFrR4GZrUdEMSVEljeJd5W
         anHyDVgtWhLs3IHOwZKhOSBjtAijjUVqD2DluViX8UJe2PduyPOM81i6gN/Q3wr0k54h
         pBFQ==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id i124si3891917lfd.225.2017.08.02.02.30.11
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 02 Aug 2017 02:30:11 -0700 (PDT)
Received-SPF: neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of gclcip-std-proposals@m.gmane.org) client-ip=195.159.176.226;
Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1dcpyd-0004iw-Lu
	for std-proposals@isocpp.org; Wed, 02 Aug 2017 11:30:03 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 16
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <f8c908e2-d06f-4cd1-bda0-fe2b97fd21f1@isocpp.org>
Content-Language: sv
X-Original-Sender: gclcip-std-proposals@m.gmane.org
X-Original-Authentication-Results: mx.google.com;       spf=neutral
 (google.com: 195.159.176.226 is neither permitted nor denied by best guess
 record for domain of gclcip-std-proposals@m.gmane.org) smtp.mailfrom=gclcip-std-proposals@m.gmane.org
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:33528
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33528>

On 2017-08-01 23:24, costelnistor12@gmail.com wrote:
> 
> I know that it's hard to have features accepted in such a popular 
> standard, but upgrading switch is something that should really be 
> considered ! C++17's [[fallthrough]] attribute is just as complicated as 
> the "switch". It needs to be added everywhere or else we would get 
> warnings (AFAIK).
> 

In my experience it was just a handful of places in a (not that large) 
code base. And most of those places already had a comment that the 
fall-through was intentional.


     Bo Persson


-- 
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/ols5p7%24lha%241%40blaine.gmane.org.

.
