220 26565 <EBAA14C1-2C3A-4078-8A49-B3CA1D6A17DC@gmail.com> article
Path: news.gmane.org!not-for-mail
From: Jonathan Coe <jonathanbcoe@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: auto type deduction for *_cast return argument
Date: Tue, 5 Jul 2016 17:12:02 +0100
Lines: 30
Approved: news@gmane.org
Message-ID: <EBAA14C1-2C3A-4078-8A49-B3CA1D6A17DC@gmail.com>
References: <58140e46-2adc-4eac-8f51-72d3685cdf0b@isocpp.org> <7E3409C2-A2AC-4562-BB06-6D5D5ACE8AC8@gmail.com> <00caca39-d36a-475c-840f-79759e99265d@isocpp.org> <4ac3803f-a87d-4551-947f-43f106bdda20@isocpp.org> <nlgled$jdo$1@ger.gmane.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0 (1.0)
Content-Type: text/plain; charset=UTF-8
X-Trace: ger.gmane.org 1467735143 3430 80.91.229.3 (5 Jul 2016 16:12:23 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 5 Jul 2016 16:12:23 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC2JVFPBRAHBBVNY565QKGQEMR75KDI@isocpp.org Tue Jul 05 18:12:12 2016
Return-path: <std-proposals+bncBC2JVFPBRAHBBVNY565QKGQEMR75KDI@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wm0-f70.google.com ([74.125.82.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBC2JVFPBRAHBBVNY565QKGQEMR75KDI@isocpp.org>)
	id 1bKSxC-0000js-U3
	for gclcip-std-proposals@m.gmane.org; Tue, 05 Jul 2016 18:12:06 +0200
Original-Received: by mail-wm0-f70.google.com with SMTP id a66sf92405040wme.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 05 Jul 2016 09:12:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:mime-version:subject:message-id:date:references:in-reply-to:to
         :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=+uB45bNkFenca4sSrMLca5iOvFLY0dEAvOXR4eLRT3g=;
        b=ggYlhcwRzW6RcEvh0uCc9oInF5lvFIxlFuzRgskFohCgZ+diIiiONZ0m72wRVyqdbu
         FVsIxPGiKP8VYVjUTzf3bQVWIxR88cEyyTkJD6hi6Qza6KBans/KgzQqOPfsdpS1XkT+
         UpDG7WOyOkIvq2bZNYjNs7KFluQPOcabqI//iBOJE7oaIeT4EQ52hbPXs7SlD1jieaC+
         tm00ZaGDb7UVxK+F71IwjIJUUF/z6lxa/tDMg/lwdOlgZ4hR7HSKE1wrLYboLfDFsKTx
         o8Rmzx/0VrBxaiLkYRXvcfYc6qF+aEeI1tWOd7bkxbs6Q6+vHkwaOBsv30nMiOiZD4M+
         65qw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:from:mime-version:subject:message-id:date
         :references:in-reply-to:to: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=+uB45bNkFenca4sSrMLca5iOvFLY0dEAvOXR4eLRT3g=;
        b=FsFLgxHeKwKYlJD1f7BXk0ZP/j/e2mLbUZhORwRpc/JPlYwdXghka+vQ4kG2tdoOyr
         r5xxQE0GHd+7QaVblxO9BuqiGDNUXmLZ4qXnuXSb+fCya6E8NnMK+AFCYCC2oaIoXbUj
         e+mknCVIJRZoKeUCbKWoVmXWyxHYl3dA2JxtPtyhaNtk0rYnePLb1svb8q0NUiTv4SSx
         8KEyFZqoznU71FTWlTrUC3g85YgW1S9UZTrrYt0pjj6aWCXvov+wyVcpis2CfBlZKJyS
         k34aiRgEsALi2C793csQNRSjWNWV9vmkygJ9e8lXe+vCSNQPS++tbekt608G+TMO58JL
         JDuw==
X-Gm-Message-State: ALyK8tIOAgn9g2GzVYF4ljft7FWbgT3qqXl5854f7KD3R/43cVjXn4UUNQtEv/QDg/Wb8A==
X-Received: by 10.194.76.8 with SMTP id g8mr3704710wjw.2.1467735126395;
        Tue, 05 Jul 2016 09:12:06 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.28.169.77 with SMTP id s74ls635296wme.28.canary; Tue, 05 Jul
 2016 09:12:05 -0700 (PDT)
X-Received: by 10.28.154.214 with SMTP id c205mr17396506wme.9.1467735125259;
        Tue, 05 Jul 2016 09:12:05 -0700 (PDT)
Original-Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com. [2a00:1450:400c:c09::22a])
        by mx.google.com with ESMTPS id 85si4219808wmb.30.2016.07.05.09.12.05
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Tue, 05 Jul 2016 09:12:05 -0700 (PDT)
Received-SPF: pass (google.com: domain of jonathanbcoe@gmail.com designates 2a00:1450:400c:c09::22a as permitted sender) client-ip=2a00:1450:400c:c09::22a;
Original-Received: by mail-wm0-x22a.google.com with SMTP id f126so143553473wma.1
        for <std-proposals@isocpp.org>; Tue, 05 Jul 2016 09:12:05 -0700 (PDT)
X-Received: by 10.194.52.1 with SMTP id p1mr15906197wjo.27.1467735124808;
        Tue, 05 Jul 2016 09:12:04 -0700 (PDT)
Original-Received: from [10.193.174.111] (genkt-057-143.t-mobile.co.uk. [149.254.57.143])
        by smtp.gmail.com with ESMTPSA id t188sm3743016wma.8.2016.07.05.09.12.03
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Tue, 05 Jul 2016 09:12:03 -0700 (PDT)
In-Reply-To: <nlgled$jdo$1@ger.gmane.org>
X-Mailer: iPhone Mail (13F69)
X-Original-Sender: jonathanbcoe@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com;       spf=pass (google.com: domain of
 jonathanbcoe@gmail.com designates 2a00:1450:400c:c09::22a as permitted
 sender) smtp.mailfrom=jonathanbcoe@gmail.com;       dmarc=pass (p=NONE
 dis=NONE) header.from=gmail.com
Precedence: list
Mailing-list: list std-proposals@isocpp.org; contact std-proposals+owners@isocpp.org
List-ID: <std-proposals.isocpp.org>
X-Spam-Checked-In-Group: 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:26565
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26565>



> On 5 Jul 2016, at 16:57, Jim Porter <jvp4846@g.rit.edu> wrote:
> 
>> On 7/5/2016 10:07 AM, Nicol Bolas wrote:
>> Indeed, this is a good reason to /not/ make such casts easier to type.
>> If you're using casts so frequently that you need a language change to
>> avoid lots of repetition, then I'd say that your code is doing something
>> wrong.
> 
> Agreed. I seem to recall a (possibly apocryphal) explanation that the C++ cast functions were verbose *because* they should be avoided unless absolutely necessary; the verbosity thus serves as a warning to the developer to rethink things.
> 

static_cast is an occasional exception to this rule as it can trigger user-defined conversions. Always seems a bit awkward to me.

> - Jim
> 
> 
> -- 
> 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/nlgled%24jdo%241%40ger.gmane.org.

-- 
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/EBAA14C1-2C3A-4078-8A49-B3CA1D6A17DC%40gmail.com.

.
