220 26564 <nlgled$jdo$1@ger.gmane.org> article
Path: news.gmane.org!not-for-mail
From: Jim Porter <jvp4846@g.rit.edu>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: auto type deduction for *_cast return argument
Date: Tue, 5 Jul 2016 10:57:56 -0500
Lines: 20
Approved: news@gmane.org
Message-ID: <nlgled$jdo$1@ger.gmane.org>
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>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
X-Trace: ger.gmane.org 1467734306 22000 80.91.229.3 (5 Jul 2016 15:58:26 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Tue, 5 Jul 2016 15:58:26 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBDYZZG6PQYFRBFVS565QKGQEMN7FNAA@isocpp.org Tue Jul 05 17:58:17 2016
Return-path: <std-proposals+bncBDYZZG6PQYFRBFVS565QKGQEMN7FNAA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f70.google.com ([209.85.215.70])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBDYZZG6PQYFRBFVS565QKGQEMN7FNAA@isocpp.org>)
	id 1bKSjo-0000Yx-KD
	for gclcip-std-proposals@m.gmane.org; Tue, 05 Jul 2016 17:58:16 +0200
Original-Received: by mail-lf0-f70.google.com with SMTP id a4sf142179292lfa.1
        for <gclcip-std-proposals@m.gmane.org>; Tue, 05 Jul 2016 08:58:16 -0700 (PDT)
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: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=DQvmzpvA6dFVedW44z/8NdSkUb4lm20VYhESeXKQd7c=;
        b=HJqim2jqFHwuMBCoHUc3atewKuj+XmPU9prvnj19rziGIIk4rS/+svue9N0jy1k2NG
         tY6xVU6I2LjI2Z6tYZMJqCDbppTqcemGbwenmCnIhPZV4phv9KShizh4A0DMDftD7RPN
         QRsbxgnVDkGI7vj5A6OntRXoUZk2XEeR+Os53GrXNNk5TCEIojRJcaHe7Zb/1fd6Fn/j
         AojmfAqzfqi+3tYt3TVEU+gFojmzwJiLX43//87I9bj+sROpfM1kCm3SNypYn9rOhOtq
         7Q9S2vN9icjXGjhS91LPyWIB5/ZhLYYT40UYqj2R3NCb10PlKEIeQ9uPxOho6O1S5lVz
         Kwvw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:to:from:subject:date:lines:message-id:references
         :mime-version:user-agent:in-reply-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=DQvmzpvA6dFVedW44z/8NdSkUb4lm20VYhESeXKQd7c=;
        b=nHVPlXgAPqwBLVFSMxhPJzE9gNcvx2GmaKtw0nzzf1+ibSAgpAdSh1ZmPkiHwENlTL
         IUtI7zIg27epbBkG4RxdckS12WAQjtrKvRksPX3ki47KpazUA7Td8rZ344AarxJVTrh5
         ZP8QWK+KTbajDETzEtybsw2+0gQrMfx0oMFK3Tyg8sMsyPtelf5LL6kUyE4uCFKPUUgm
         x8j+N4FQbsOxepr0DPEWMzRbfCUZwoJtDv25drQhXS2NWdUh3+/VPKUlIZfHtCEbww8+
         6ivvThsqOmRj6DcGAekXS1RNPfjkTDVFcqmBSo0TY755y9W4rH74xn7VnegygE8YCBPM
         h6Wg==
X-Gm-Message-State: ALyK8tIPVT/FmvbUfttieat8eq+26dElXX88/nUwU+COj5108uKNflg8Akq5vVEAcsUfUw==
X-Received: by 10.28.154.151 with SMTP id c145mr2833156wme.3.1467734296086;
        Tue, 05 Jul 2016 08:58:16 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.40.143 with SMTP id o137ls200981lfo.4.gmail; Tue, 05 Jul
 2016 08:58:14 -0700 (PDT)
X-Received: by 10.25.3.12 with SMTP id 12mr3721570lfd.110.1467734294091;
        Tue, 05 Jul 2016 08:58:14 -0700 (PDT)
Original-Received: from plane.gmane.org (plane.gmane.org. [80.91.229.3])
        by mx.google.com with ESMTPS id f82si368446lfe.266.2016.07.05.08.58.13
        for <std-proposals@isocpp.org>
        (version=TLS1 cipher=AES128-SHA bits=128/128);
        Tue, 05 Jul 2016 08:58:13 -0700 (PDT)
Received-SPF: pass (google.com: domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as permitted sender) client-ip=80.91.229.3;
Original-Received: from list by plane.gmane.org with local (Exim 4.69)
	(envelope-from <gclcip-std-proposals@m.gmane.org>)
	id 1bKSjj-0000VN-E3
	for std-proposals@isocpp.org; Tue, 05 Jul 2016 17:58:11 +0200
Original-Received: from 24-241-226-143.dhcp.mdsn.wi.charter.com ([24.241.226.143])
        by main.gmane.org with esmtp (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 05 Jul 2016 17:58:11 +0200
Original-Received: from jvp4846 by 24-241-226-143.dhcp.mdsn.wi.charter.com with local (Gmexim 0.1 (Debian))
        id 1AlnuQ-0007hv-00
        for <std-proposals@isocpp.org>; Tue, 05 Jul 2016 17:58:11 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 13
Original-X-Complaints-To: usenet@ger.gmane.org
X-Gmane-NNTP-Posting-Host: 24-241-226-143.dhcp.mdsn.wi.charter.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101
 Thunderbird/45.1.1
In-Reply-To: <4ac3803f-a87d-4551-947f-43f106bdda20@isocpp.org>
X-Original-Sender: jvp4846@g.rit.edu
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of gclcip-std-proposals@m.gmane.org designates 80.91.229.3 as
 permitted sender) 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-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:26564
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/26564>

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.

- 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.

.
