220 33733 <10557c71-2b0f-6675-305e-1267eeda1ed6@gmail.com> 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: properties?
Date: Wed, 9 Aug 2017 13:59:20 -0400
Lines: 40
Approved: news@gmane.org
Message-ID: <10557c71-2b0f-6675-305e-1267eeda1ed6@gmail.com>
References: <6ed2bd55-5538-418f-8f1a-263a9958babd@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 1502301569 29270 195.159.176.226 (9 Aug 2017 17:59:29 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Wed, 9 Aug 2017 17:59:29 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1
To: std-proposals@isocpp.org, Evan Teran <evan.teran@gmail.com>
Original-X-From: std-proposals+bncBC37LBFWUIFBB642VXGAKGQEJOH7WDY@isocpp.org Wed Aug 09 19:59:25 2017
Return-path: <std-proposals+bncBC37LBFWUIFBB642VXGAKGQEJOH7WDY@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-yw0-f197.google.com ([209.85.161.197])
	by blaine.gmane.org with esmtp (Exim 4.84_2)
	(envelope-from <std-proposals+bncBC37LBFWUIFBB642VXGAKGQEJOH7WDY@isocpp.org>)
	id 1dfVGI-0006xb-05
	for gclcip-std-proposals@m.gmane.org; Wed, 09 Aug 2017 19:59:18 +0200
Original-Received: by mail-yw0-f197.google.com with SMTP id a14sf111007282ywe.5
        for <gclcip-std-proposals@m.gmane.org>; Wed, 09 Aug 2017 10:59:24 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1502301564; cv=pass;
        d=google.com; s=arc-20160816;
        b=oMGfRQkopKfgvzj4wASiOPEb5q4bKSwz8bhUfqCLvhLjMcT4ODwA9dsThqqBLWjjat
         HaZowDdDt4v+CcBCDGYLWMh7OXtt1aMRcA9wWWjZjf6qEzb1L4/jmPqCFr+jgGwCTqCQ
         fCLyqeeEWUhc/+gmEMcb/DjW6Tlq8GSO0jLZnzmJRpZDpX54qV09EHHZv8cIc6Cm7MRE
         7NUUyOQrymwuaZzFGriXSJY1Y3UJOweF/5hW+lFJDei1TyWlQU3xFxDUjo7brq/HtB0D
         RwO8MuxqhO0i7NA3NJ/OFIpzCVjSH6/Vdvuh3VsCtd+lshWw9efeseVQckmMKdejmGbB
         KV7A==
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:mime-version:user-agent:date:message-id:from:references
         :newsgroups:to:subject:arc-authentication-results
         :arc-message-signature:dkim-signature:arc-authentication-results;
        bh=piNA/RR1i8iXMY8tYHMptrXABkTlfJ8cZ+Fm2+ggnAc=;
        b=EIAFRzHtqc8qiBmhez5O0iVTNdDaV9T3wW074L6km1Ncf/55Hw1s4jrmojs/XsrbU+
         dbjE2uP8YJaaNNv4KTGKtyoc/lW4LMDNX2m0FCukeAbegahRr8+dD7p4fX63fS6OB3+V
         3ncZ7T3wy7fgriVNqAqWGXnTAOQpnt+QU6VKCUINlpN9MPC+KiBh1WyPjMl1mQYREVwB
         BsKy4xHo6UsXavH83eaTeFVLen2FyyJglAtPjloDXP/JOCMO6/0cPrb9gpcEw5DDrA0S
         rpXYLREhjZik2QRnbG1p0rKbmjkoICN3H1Fzrwa2LnIpUqvdpsXpuLK5OChiUN96RhwG
         
ARC-Authentication-Results: i=2; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=SgC5VTiD;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::243 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=isocpp-org.20150623.gappssmtp.com; s=20150623;
        h=subject:to:newsgroups:references:from:message-id:date:user-agent
         :mime-version: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=piNA/RR1i8iXMY8tYHMptrXABkTlfJ8cZ+Fm2+ggnAc=;
        b=SR2qmEvR2RxEZZtnzcf7hUHYZDCl+wHLYBDiO+qPoQT+9kKakwvg4E5YWUbSq2vpbc
         JCz8c6+x4ahdcnSxHdCaSIWyLtqTmpPweR3rNRKop/9B0Z3rdPilwgarDL5BltL19q3P
         2V5a5RF6o247SD7qbECs7jkr5wF0LxCHz406WRNOPvaXr4SOJDnOrBkFofaZlWjpEPxp
         DardacMyc+VEfl3bjjRKP4ZEK8nvOVY4ASbsXsfv9bIab1OcTxYL8QDriqeX3vzkIUcC
         +uaOqma6R/aIO2cB5/Co+YeQ8s0A9OqCuhOX+yX/0U/u0EUtpB1wv0FKuegyhxmrev26
         9eAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:newsgroups:references:from:message-id
         :date:user-agent:mime-version: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=piNA/RR1i8iXMY8tYHMptrXABkTlfJ8cZ+Fm2+ggnAc=;
        b=Q7kDBZ3rGW+cJYZX9PdVuxwah7nj5CzRsyzZVBa333VavuVL4LztEEKHYNf0Y0owB1
         +IFdg9RTaMLzdEEed+w9sBpC3E7hdzxgx4jW3Ri8I+GOl5mbq+od1DysyEL2nLigPSyV
         nEcr2xmQe2Oeqcw9fy8vTj/WWVlVjGs/mGNRTj+UROyzYn8NUnwn/pNKtuOsJI+87ClU
         4aVzhKCc5qj10bf77Qdh241NNzpP4zMjyaU7pZVmy/V93CtHh8KDDBKAHfLIMl3yd4qD
         /xuxJU3okysCcI1yDG6V+XbVh3O8fkQGrU06rqi5ihaaukbEePirZN4nC0XxXYSJPuPf 
X-Gm-Message-State: AHYfb5gm7/fWGj0awQo/Oagm15MYeCwEQw4MoWhJMtOxMGn8Kr0pP83K
	LLHCCcwGxbcTSm2d
X-Received: by 10.13.209.68 with SMTP id t65mr5469645ywd.155.1502301564204;
        Wed, 09 Aug 2017 10:59:24 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.36.77.78 with SMTP id l75ls6295918itb.6.canary-gmail; Wed, 09
 Aug 2017 10:59:23 -0700 (PDT)
X-Received: by 10.200.42.196 with SMTP id c4mr12183026qta.131.1502301563012;
        Wed, 09 Aug 2017 10:59:23 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1502301563; cv=none;
        d=google.com; s=arc-20160816;
        b=0Xk7vZoVARRre+xW3JbHVaTr1hHgCqcUWh7YmVXM8bk9CP4eJHGqjlGB6pGk9pg8hd
         DU8TPQXOZj6aW6KknG9BRoNjMcAeANmHjk228ZIFwgZonUNN8ha4aGRxN0g8ldS/Llcz
         3wQ0ZyX/JNmxjzLGysSTr4Tb5tYf1++X+ik8DMN6wQntPIFFUFatTn6ZmdHLLPTTrK7b
         pRmku16BEJbXQ1Bj81b+9yyrSI1idDzJXRUy/2kjf5dFg/UALx/lo4pv//bPw36tpkVL
         Kivt4EQtSTNhHHbEcwHHFv91ivRn7WkgjfNTuVJMw2Yu5PM0CE2nV7u1KMMQl2Vnf4qj
         iThQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=content-transfer-encoding:content-language:in-reply-to:mime-version
         :user-agent:date:message-id:from:references:newsgroups:to:subject
         :dkim-signature:arc-authentication-results;
        bh=AIkJ3eaci3o0D4q4wBDRIYr6bef8VvcOihSnHDXaqoY=;
        b=ws9u43rjDrePxbHcbmbe+K1Mwj4b9FzrmNpRJ2gWK4fZg8gdhv8SyJPbPx1zEC8OEE
         OdVj2Y18glFpN9IlVVAPT0uFqq51K/1YlQwGNByDq991rBNIwl42fV1YKNt+ScYsRZlq
         kB/Po4Ru5d5fPcHjInykOthFhoDPhJNAMmJJCZ7bhi6oIKgxiUck3Yc2PmXRunG8IYy1
         1/zD8cM5J9zVSs0f0ZktY8Mz5TT9VpPO5krqaoXULQc+Vt5Zs3YYrk+wPGzuAoWClJb6
         n3V5Xuf60bYhp+2RC7xZVZwIF1lCEXp0WqeYj1bHv/d3pBzE5y4CFfmb8A2jOMA3HN40
         P/9Q==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass header.i=@gmail.com header.s=20161025 header.b=SgC5VTiD;
       spf=pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::243 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com
Original-Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com. [2607:f8b0:400d:c09::243])
        by mx.google.com with ESMTPS id f124si3546085qkj.308.2017.08.09.10.59.22
        for <std-proposals@isocpp.org>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 09 Aug 2017 10:59:23 -0700 (PDT)
Received-SPF: pass (google.com: domain of mwoehlke.floss@gmail.com designates 2607:f8b0:400d:c09::243 as permitted sender) client-ip=2607:f8b0:400d:c09::243;
Original-Received: by mail-qk0-x243.google.com with SMTP id m84so6344710qki.5
        for <std-proposals@isocpp.org>; Wed, 09 Aug 2017 10:59:22 -0700 (PDT)
X-Received: by 10.233.222.131 with SMTP id s125mr11577360qkf.91.1502301562763;
        Wed, 09 Aug 2017 10:59:22 -0700 (PDT)
Original-Received: from gryphon.kitware.com (tripoint.kitware.com. [66.194.253.20])
        by smtp.googlemail.com with ESMTPSA id a191sm2300487qkg.54.2017.08.09.10.59.21
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Wed, 09 Aug 2017 10:59:21 -0700 (PDT)
Original-Newsgroups: gmane.comp.lang.c++.isocpp.proposals
In-Reply-To: <6ed2bd55-5538-418f-8f1a-263a9958babd@isocpp.org>
Content-Language: en-US
X-Original-Sender: mwoehlke.floss@gmail.com
X-Original-Authentication-Results: mx.google.com;       dkim=pass
 header.i=@gmail.com header.s=20161025 header.b=SgC5VTiD;       spf=pass
 (google.com: domain of mwoehlke.floss@gmail.com designates
 2607:f8b0:400d:c09::243 as permitted sender) smtp.mailfrom=mwoehlke.floss@gmail.com;
       dmarc=pass (p=NONE sp=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:33733
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/33733>

On 2017-08-09 13:32, Evan Teran wrote:
> I never brought it up before because I assumed that it MUST have been 
> discussed in the past...

It has. To death. Properties are contentious.

(Nicol and I came up with something maybe a year ago that seemed
plausible and had additional benefits, but I don't know if it ever got
written up...)

> but a search turns up nothing.

Um...

https://groups.google.com/a/isocpp.org/forum/#!searchin/std-proposals/properties%7Csort:relevance

> I think that the specific syntax is less important than whether or
> not the feature is desirable)
A number of folks seem to be interested, but the implementation seems to
be contentious, from what I recall.

>     [[property]] int data = [ read_data, write_data ];

FWIW, I'm pretty sure this syntax won't fly. Also, while there are
significant advantages to this simplistic approach, I'm sure some folks
will complain (loudly) that it requires the get/set functions are still
direct members of the class, and there may be difficulties knowing which
one to call when.

Do please also read the inline class threads...

-- 
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/10557c71-2b0f-6675-305e-1267eeda1ed6%40gmail.com.

.
