220 40346 <2016044.EC7RGCoeXV@tjmaciei-mobl1> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Thiago Macieira <thiago@macieira.org>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: =?UTF-8?Q?Re=3A_=5Bstd=2Dproposals=5D_Enforce_explicit_casting_on_assi?=
	=?UTF-8?Q?gnment_and_return_type_=E2=80=98bool=E2=80=99?=
Date: Fri, 05 Oct 2018 22:06:05 -0700
Lines: 21
Approved: news@gmane.org
Message-ID: <2016044.EC7RGCoeXV@tjmaciei-mobl1>
References: <5df28d28-a2f4-47cd-9da7-49c91ed6d6f4@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"
X-Trace: blaine.gmane.org 1538802242 4609 195.159.176.226 (6 Oct 2018 05:04:02 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Sat, 6 Oct 2018 05:04:02 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCB4TK757YBRBP4F4HOQKGQE7FBM76Y@isocpp.org Sat Oct 06 07:03:58 2018
Return-path: <std-proposals+bncBCB4TK757YBRBP4F4HOQKGQE7FBM76Y@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-qt1-f200.google.com ([209.85.160.200])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBCB4TK757YBRBP4F4HOQKGQE7FBM76Y@isocpp.org>)
	id 1g8ekw-00013f-2v
	for gclcip-std-proposals@m.gmane.org; Sat, 06 Oct 2018 07:03:58 +0200
Original-Received: by mail-qt1-f200.google.com with SMTP id d18-v6sf14593542qtj.20
        for <gclcip-std-proposals@m.gmane.org>; Fri, 05 Oct 2018 22:06:08 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1538802368; cv=pass;
        d=google.com; s=arc-20160816;
        b=gzIof1rOEU61wmpdKhMrd1ZlCtlfJHI91E679+gTOV2+v7cSPgz6cSvCjGelImup2+
         xQVDX64IFMoXJhiMSxLrD6n5aX2SkkBfGrZGSGGkTIqASJL0QijFqLdzujiDDRbSUVwA
         EW+ljl8vl19NFF84luL65I2UIyDIhyWEsDR1U3vyOS2lG6L11UlBastgUZq02S18VoIi
         EG112W9cD75qBnTcheMKSqM98OEA5xZq3U3lNzme0uTz4ZY2GL0o99qNCXXVHkTYv9WP
         CuTXzEncDeOR0hyISHce89iIwSj5VLAmzvAxGcobqPPWI865dS6Y+9wwv78YdqjVxyQj
         02Ng==
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:mime-version:references
         :in-reply-to:message-id:date:subject:to:from:dkim-signature;
        bh=VrZ09OpiN5ODU0GrS1ovALvH0QjQzCtj65tujFsPJ4E=;
        b=E/XVsnwS7XEqkwIXTRPhf3pUWj5cKThnYU5U8nxtjH4nqsfrK8uFFqw1FsAjJxjCt3
         09nNYTHArhUmCI4j+Bwuz/rsQaX+QBX5AJrL95Eo+IPMiYPrpuLyRQg04KGTtZ8Aw1w/
         R00cbvNVPd3DyPhUDuvmv68xDyo18A6tRk2YkotkFSwWNyv+ycbimQ2690l1qnadkok5
         924ELahbQ5nmiQvWhXR+oglST0KLIy4lw3MKFjTqsiZoonoT6hNvOjs1Aa3tMkjy2wdt
         NTWNGtWGGM0CdqgEV1jzF0AAfieabkbGIGpek0c0izeFApVprXofTRJUnjjEczP2mEka
         3HnA==
ARC-Authentication-Results: i=2; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=from:to:subject:date:message-id:in-reply-to:references:mime-version
         :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=VrZ09OpiN5ODU0GrS1ovALvH0QjQzCtj65tujFsPJ4E=;
        b=aKHPpTOw1AD3FURRc6Sirt4I8cJTX5xqNV3ja2hoUMqbGnhuW00IinY9jwywRTFSFU
         ls/ps7ujG8eqLnsCP5ODMfHQsfk0+CqdNKaTa0JRWnu6JHfFtjwWgArDBcohegWlpShD
         kjBkyg/NFGQORFxTd4jNNUFMaZCB6QnXxRWpsitXnFbQMlQiO8Ihx0ZdnbGw20qi0b5O
         1RRH1hIeK2oL/76gfkhWjckZ7YSGfSbFMpCWrdBFB+PoLmXFu8NMBE6opvSqmgAHfEJg
         RBad0IdMPeBlr43UT1jLZ9u89L4XOfwsqIzNwaNqJ+TE+iU0JPOm3LMjR4QlFYJS/gLW
         RoVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to
         :references:mime-version: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=VrZ09OpiN5ODU0GrS1ovALvH0QjQzCtj65tujFsPJ4E=;
        b=Rec2gRvZQX7YOHn4D3VqrCm9l7BebhpAf4XiF1X1RspYyFV9TEv6+xFrGapl169Pun
         flPyv6DaIRNhI5GKNI/ceTn6vh9CGBNJvwSJ+6ao/lJyaMd5VNekKAAQ2GvW5m7ncnAy
         MXwmsouenPwtmPfVh0H57eHXqGdRgNk47zvjQ22aJPb+AbgjPNnGE93r7IPtRH+A9uJ9
         /lJ+iA6MwWg6m71clmo9u0vn7YSbs3lDDxkZtZENs97mxJEGpJev01RUhtbqEJmRD49W
         pXRHrTk1DFuaPFHPnzCwVfSgGs056DFeu65TrsNqFkJNWevHE8P4paWQzvkfG5cL0pxP
         XsEQ==
X-Gm-Message-State: ABuFfojLNfAnTZ4qapKy337NESS681Fp6QbAJXkmlbeOHNM/lmzG75lV
	Zw2CrRxrsgb2/SbX/SSNq4V5xg==
X-Google-Smtp-Source: ACcGV62G9XyPQNWuVSe27KqYjvJL8MoT4vFvgm/TmyzSOj4DEzR87YxJBrdFYaV/jM4p5otpysKcWw==
X-Received: by 2002:a37:378d:: with SMTP id e135-v6mr10304219qka.17.1538802368366;
        Fri, 05 Oct 2018 22:06:08 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 2002:ac8:2cac:: with SMTP id 41-v6ls1302231qtw.2.gmail; Fri, 05
 Oct 2018 22:06:07 -0700 (PDT)
X-Received: by 2002:aed:2aa1:: with SMTP id t30-v6mr11973159qtd.319.1538802367630;
        Fri, 05 Oct 2018 22:06:07 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1538802367; cv=none;
        d=google.com; s=arc-20160816;
        b=cbeapqvTRkb6aLSnYRkso5VdwPJqfXcSLCPQg/F5ePACOzRBnOzDsl3NObDCfsiAih
         ZbHM43KnI1b1W+t09OIo5NYNRzBRhkvj44uqFNU8eNsAe3gv5jj89b6BYU0qppgcY6J/
         vVojF3uU2J0JJ4/vSpPM1rJJKdS+S8J2k3pa+wD4D60rEcEhPAUwSJanEqZE4g6mNTfe
         YARrr8HpCbka7TEkcPFQJptviBWngq80l4aEV/TFQ8b1tV2IZqWs4WuBXUgJtotoxpJf
         /hlWd9znErIDgNgajZEFO1o53/i92+gI7XfcthsVZEoljtMLJULpqe6d8Naxb25nEdJQ
         S3yQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:mime-version:references:in-reply-to
         :message-id:date:subject:to:from;
        bh=Iffh0ev/FWv1uJ7GpICJUgyrAicQg6RsDP32Wg2FmfM=;
        b=C9wvRlBB5sgefaFiG8wHModZhzoDI3+uNNs8srISw5y/HMqWwG4KX1Njxa20i3ML2n
         XAUnGne3WSeTfd6TCUs0YrkQELRipn0pDrWmVvejnlzSvCsn3qlt2oJfvgXlrf4Uzqgo
         nTKGnwv46YZEmfvxBQSoGfdydrurQoEjZxuyYtJ7lqVXIsd+b9mTw7hDVxIvrPaNImgL
         RKip5704IZTHuEs4OeSsFhFXhpMIPebErJYCa/KqPA2vqsCpysf8MfFnWHS1JlSfVGB/
         hPaEvK4+1CQqEkktRiulWLoPuuK9VlBwAtVdnxZZkdxx8DS97mbgu4pQoq2vgg3cNST8
         yD1w==
ARC-Authentication-Results: i=1; mx.google.com;
       spf=pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) smtp.mailfrom=thiago@macieira.org
Original-Received: from smtp.macieira.info (smtp.macieira.info. [2001:19f0:5:2221::1:3])
        by mx.google.com with ESMTPS id l33-v6si1460884qte.345.2018.10.05.22.06.07
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 05 Oct 2018 22:06:07 -0700 (PDT)
Received-SPF: pass (google.com: domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted sender) client-ip=2001:19f0:5:2221::1:3;
Original-Received: from tjmaciei-mobl1.localnet (unknown [IPv6:2601:1c0:4500:d000:f1f7:a58d:7beb:9a94])
	by smtp.macieira.info (Postfix) with ESMTPSA id 321B419F4C
	for <std-proposals@isocpp.org>; Fri,  5 Oct 2018 22:06:06 -0700 (PDT)
In-Reply-To: <5df28d28-a2f4-47cd-9da7-49c91ed6d6f4@isocpp.org>
X-Original-Sender: thiago@macieira.org
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of thiago@macieira.org designates 2001:19f0:5:2221::1:3 as permitted
 sender) smtp.mailfrom=thiago@macieira.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:40346
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/40346>

On Friday, 5 October 2018 18:48:32 PDT Johnny Shaw wrote:
> While there is value in implicit conversion under some circumstances.
> Explicit conversion clearly identifies the intent and eliminates mistakes.
> Enforcing a standard that requires explicit conversion to bool, at very
> least for a return value, will eliminate possible coding errors.

And break a lot of existing code. Because of that, you need to provide strong 
justification why this should be adopted.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



-- 
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/2016044.EC7RGCoeXV%40tjmaciei-mobl1.

.
