220 28730 <ntlgqd$3tk$3@blaine.gmane.org> article
Path: news.gmane.org!.POSTED!not-for-mail
From: Matthew Woehlke <mwoehlke.floss@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: A plea to reconsider adding Structured Bindings
 to language
Date: Wed, 12 Oct 2016 10:20:00 -0400
Lines: 28
Approved: news@gmane.org
Message-ID: <ntlgqd$3tk$3@blaine.gmane.org>
References: <201610051238.17863.marc.mutz@kdab.com>
 <BY2PR0301MB207067A62039FBA165EB7AEFB8C40@BY2PR0301MB2070.namprd03.prod.outlook.com>
 <201610051908.38951.marc.mutz@kdab.com>
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 1476282637 2316 195.159.176.226 (12 Oct 2016 14:30:37 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 12 Oct 2016 14:30:37 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.1.0
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBC37LBFWUIFBB4ER7G7QKGQE7A24SIA@isocpp.org Wed Oct 12 16:30:24 2016
Return-path: <std-proposals+bncBC37LBFWUIFBB4ER7G7QKGQE7A24SIA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-lf0-f72.google.com ([209.85.215.72])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBB4ER7G7QKGQE7A24SIA@isocpp.org>)
	id 1buKXn-0005jS-3p
	for gclcip-std-proposals@m.gmane.org; Wed, 12 Oct 2016 16:30:07 +0200
Original-Received: by mail-lf0-f72.google.com with SMTP id x23sf28703079lfi.0
        for <gclcip-std-proposals@m.gmane.org>; Wed, 12 Oct 2016 07:30:09 -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=xNz40094nApr5C7bci3CrsoECHTnFCLeZIKD48FhhTA=;
        b=Qvw/7Ew8117ppsIuDkg60wMWzDg/fJQTgIsXu66j9CcLkGHwIHpuZCOvUAYJxfXzYE
         6INhau4ztcAqzK8VnSMbLsP5UQNii+LTsNIC8hXoM+fsgj6zjgfp5jrGR/VmBWZWP7zV
         ptk07+hT8Ip5d0KKjwbC+EZi9FkZiwc3uvEo3OwJ14IUCSBUQO5/eE+cseSiFmGp65Fe
         DS9f7iW8TWrwvbZLR3IOf/GB5EaMVqJHtYaBf5xrCWdx455ivdAZalL2jiqMCaqmPeJ/
         OlhFGkTEbUHNj/AhrHs8Fi9hYKG8hv4UoCxYoJE2rPVfQwpVHtGIWrT3Acue7GRDzbb2
         Y9RQ==
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=xNz40094nApr5C7bci3CrsoECHTnFCLeZIKD48FhhTA=;
        b=RtxoGcruY71NAWQboHknMYtznMUGqe8GlpCMA2ary8qE05lXo+y44tdC9yCo6bSUjG
         FXXPqcR5DxK3Oc0EfrJysJyBMyMvBztQMeEa+cqc+p1pB6q6AATaKGXbV6m12spCscAg
         ItFCN1U3NqUr/OTXnYUp6V3hgTuZ2erPEXEUiGxvHjSovFIHGaJSMTjLi4CiJCxbWzXI
         9Dnj5iS4urziXC0+UkEkN+PjWHqWiuwQLsjjk20mb619BHsOPuLIfjElmwoWUmFvk6A9
         oV4Wo+vfS3G3ngVWH1U251ZiX8zCBYamnib+fey1bDIE5/7+VIShKWBwH7e2xdLhWoBq
         wVLw==
X-Gm-Message-State: AA6/9Rlpr2PHtpvoJ9Awla1MrzHWAKPV29djYbBke2tmAp+o9n116wh5AEwcm83s+ParYA==
X-Received: by 10.25.199.137 with SMTP id x131mr176204lff.12.1476282609333;
        Wed, 12 Oct 2016 07:30:09 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.25.205.140 with SMTP id d134ls425280lfg.33.gmail; Wed, 12 Oct
 2016 07:30:08 -0700 (PDT)
X-Received: by 10.194.123.197 with SMTP id mc5mr1846062wjb.231.1476282608133;
        Wed, 12 Oct 2016 07:30:08 -0700 (PDT)
Original-Received: from blaine.gmane.org ([195.159.176.226])
        by mx.google.com with ESMTPS id l17si4933565lfl.126.2016.10.12.07.30.08
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 12 Oct 2016 07:30:08 -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 1buKXl-0005Yj-2B
	for std-proposals@isocpp.org; Wed, 12 Oct 2016 16:30:05 +0200
X-Injected-Via-Gmane: http://gmane.org/
Original-Lines: 21
Original-X-Complaints-To: usenet@blaine.gmane.org
In-Reply-To: <201610051908.38951.marc.mutz@kdab.com>
X-Original-Sender: mwoehlke.floss@gmail.com
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;
       dmarc=fail (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-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:28730
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/28730>

(Apologies if this posts twice; the original appears to have gotten lost.)

On 2016-10-05 13:08, Marc Mutz wrote:
> Even with so much effort going into making the Qt 4 API more readable, at 
> roughly the same time, this slipped in:
> 
>    typedef QPair<double, QColor> QGradientStop;

FWIW, this sort of thing needs to be burned with fire anywhere it
happens. IMHO we need to keep working on the "tuple-like" concept so
that there is *no reason* to write the above instead of:

  struct QGradientStop { double position; QColor color; };

I don't think we're there yet. There are (apparently) still cases where
QPair/std::pair/std::tuple is more useful than a struct. If we can make
that no longer the case, I hope we can stop (ab)using those for cases
that a struct is more appropriate.

-- 
Matthew

-- 
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/ntlgqd%243tk%243%40blaine.gmane.org.

.
