220 17422 <CAARi+POLoDm6jxk-8wUZqKzYGSTBQ6M75FyKVeciyLc0Vuh4SA@mail.gmail.com> article
Path: news.gmane.org!not-for-mail
From: Olanrewaju Adetula <jsphadetula@gmail.com>
Newsgroups: gmane.comp.lang.c++.isocpp.proposals
Subject: Re: Re: Uniform initialization
Date: Sat, 18 Apr 2015 22:51:00 +0100
Lines: 206
Approved: news@gmane.org
Message-ID: <CAARi+POLoDm6jxk-8wUZqKzYGSTBQ6M75FyKVeciyLc0Vuh4SA@mail.gmail.com>
References: <71c68232-cac8-4a7c-b370-31b96a49bfce@isocpp.org>
	<3440360.unEdn8fkKG@tjmaciei-mobl4>
	<38f0a930-a26d-4baf-b4e1-2d0310fa2f3b@isocpp.org>
	<6246152.8KiAvJ7cI9@tjmaciei-mobl4>
	<1afad679-298b-4b48-a42c-38b81771e854@isocpp.org>
	<CAGg_6+MGcRmhYNUbE39WZzgGyF3JqOMC51SzMf-n3O=ooDTkag@mail.gmail.com>
	<e00fc193-2551-447d-a083-6691eb840b9a@isocpp.org>
Reply-To: std-proposals@isocpp.org
NNTP-Posting-Host: plane.gmane.org
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=089e014946004f8274051406b18d
X-Trace: ger.gmane.org 1429393878 11452 80.91.229.3 (18 Apr 2015 21:51:18 GMT)
X-Complaints-To: usenet@ger.gmane.org
NNTP-Posting-Date: Sat, 18 Apr 2015 21:51:18 +0000 (UTC)
To: std-proposals@isocpp.org
Original-X-From: std-proposals+bncBCF6REN4VUERBRNDZOUQKGQE4F4U7XA@isocpp.org Sat Apr 18 23:51:05 2015
Return-path: <std-proposals+bncBCF6REN4VUERBRNDZOUQKGQE4F4U7XA@isocpp.org>
Envelope-to: gclcip-std-proposals@m.gmane.org
Original-Received: from mail-wi0-f198.google.com ([209.85.212.198])
	by plane.gmane.org with esmtp (Exim 4.69)
	(envelope-from <std-proposals+bncBCF6REN4VUERBRNDZOUQKGQE4F4U7XA@isocpp.org>)
	id 1Yjadj-0001FU-OS
	for gclcip-std-proposals@m.gmane.org; Sat, 18 Apr 2015 23:51:03 +0200
Original-Received: by wiun10 with SMTP id n10sf10781006wiu.1
        for <gclcip-std-proposals@m.gmane.org>; Sat, 18 Apr 2015 14:51:02 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:date
         :message-id:subject:from:to:content-type: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=zYsgPZwnxxhoftJfiq9GzZ5x828IfCHdmGF0HjH3lag=;
        b=M36a2WPupvqqM69sRTPKna+KVgBxrFlIrYtBMyKWSOnu9rjykp8mgeU5y0nFNIAbVf
         f3xb4b303A4hlFu7CfRrieQX29Xfulwss5QPeYTOlDo5kdmQ5r6ntrVzDOSkGqP01zYv
         rjyloOVTE0sVvkQmqnjjMaTWINT9Fc1Xo8P9HRid3GEaNI4MVsEbQT+x3ol/jwVm/fy/
         NwdPXm1ycwbknZHSST+0rNUrDg7OWJFPeGPPX9cZBlLexdoaM38MfFXv8KpaKlnwWuly
         8LJuM5U/sBbw+i+mS+3//vdxqpPGSHtrJIwsfEZ+IgsBmm00UFwMi6PLMJoh0dotjCuy
         fy9g==
X-Gm-Message-State: ALoCoQlKD4+e1TWkgs3p9KuF/03damf/cUfRiaM2fvYFXS/QWGO7apsOGV/LDcQZVgr8LSo0+yrh
X-Received: by 10.152.163.99 with SMTP id yh3mr4238471lab.8.1429393862877;
        Sat, 18 Apr 2015 14:51:02 -0700 (PDT)
X-BeenThere: std-proposals@isocpp.org
Original-Received: by 10.152.37.105 with SMTP id x9ls700217laj.11.gmail; Sat, 18 Apr
 2015 14:51:01 -0700 (PDT)
X-Received: by 10.152.5.39 with SMTP id p7mr9653279lap.18.1429393861218;
        Sat, 18 Apr 2015 14:51:01 -0700 (PDT)
Original-Received: from mail-lb0-x236.google.com (mail-lb0-x236.google.com. [2a00:1450:4010:c04::236])
        by mx.google.com with ESMTPS id k3si11704190laf.146.2015.04.18.14.51.01
        for <std-proposals@isocpp.org>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Sat, 18 Apr 2015 14:51:01 -0700 (PDT)
Received-SPF: pass (google.com: domain of jsphadetula@gmail.com designates 2a00:1450:4010:c04::236 as permitted sender) client-ip=2a00:1450:4010:c04::236;
Original-Received: by lbbqq2 with SMTP id qq2so105881893lbb.3
        for <std-proposals@isocpp.org>; Sat, 18 Apr 2015 14:51:00 -0700 (PDT)
X-Received: by 10.152.9.4 with SMTP id v4mr9869324laa.34.1429393860689; Sat,
 18 Apr 2015 14:51:00 -0700 (PDT)
Original-Received: by 10.25.28.65 with HTTP; Sat, 18 Apr 2015 14:51:00 -0700 (PDT)
Original-Received: by 10.25.28.65 with HTTP; Sat, 18 Apr 2015 14:51:00 -0700 (PDT)
In-Reply-To: <e00fc193-2551-447d-a083-6691eb840b9a@isocpp.org>
X-Original-Sender: jsphadetula@gmail.com
X-Original-Authentication-Results: mx.google.com;       spf=pass (google.com:
 domain of jsphadetula@gmail.com designates 2a00:1450:4010:c04::236 as
 permitted sender) smtp.mail=jsphadetula@gmail.com;       dkim=pass
 header.i=@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-Google-Group-Id: 399137483710
List-Post: <http://groups.google.com/a/isocpp.org/group/std-proposals/post>, <mailto:std-proposals@isocpp.org>
List-Help: <http://support.google.com/a/isocpp.org/bin/topic.py?topic=25838>, <mailto:std-proposals+help@isocpp.org>
List-Archive: <http://groups.google.com/a/isocpp.org/group/std-proposals/>
List-Subscribe: <http://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>,
 <http://groups.google.com/a/isocpp.org/group/std-proposals/subscribe>
Xref: news.gmane.org gmane.comp.lang.c++.isocpp.proposals:17422
Archived-At: <http://permalink.gmane.org/gmane.comp.lang.c++.isocpp.proposals/17422>

--089e014946004f8274051406b18d
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Changing the vector class will not necessarily solve inherent ambiguity
because initializer list has preference over constructor calls.
Initializer can always be called by mistake if the intended parameters are
the same type, although such cases are small I believe but having such a
syntax will make the programmer's intention clear
On Apr 18, 2015 10:42 PM, "Alexander Marinov" <sasho648@mail.bg> wrote:

> Yeah after ISO released them. Maybe you're right. Then perhaps it will be
> better to modify the 'std::vector' class instead. I don't think adding ne=
w
> syntax for such a small thing will be accepted.
>
> =D0=BD=D0=B5=D0=B4=D0=B5=D0=BB=D1=8F, 19 =D0=B0=D0=BF=D1=80=D0=B8=D0=BB 2=
015 =D0=B3., 0:18:25 UTC+3, Nevin ":-)" Liber =D0=BD=D0=B0=D0=BF=D0=B8=D1=
=81=D0=B0:
>>
>> On 18 April 2015 at 16:09, Alexander Marinov <sash...@mail.bg> wrote:
>>
>>> It should work all the cases that *std::initializer_list* do.
>>>
>>
>>
>>    1. Why??
>>    2. What are the motivating use cases for initializer_list being bad
>>    and array being good?
>>    3. array has different copy semantics.
>>    4. Using array would require all the constructors that use it to be
>>    in the header, as you'd have to templatize on the size of the array.
>>    5. Huge breaking change.
>>
>>
>>
>>>
>>>
>>> =D0=BD=D0=B5=D0=B4=D0=B5=D0=BB=D1=8F, 19 =D0=B0=D0=BF=D1=80=D0=B8=D0=BB=
 2015 =D0=B3., 0:05:21 UTC+3, Thiago Macieira =D0=BD=D0=B0=D0=BF=D0=B8=D1=
=81=D0=B0:
>>>>
>>>> On Saturday 18 April 2015 14:02:40 Alexander Marinov wrote:
>>>> > Well - very simple. You just need to replace *std::initializer_list
>>>> *with
>>>> > *std::array*.
>>>>
>>>> Will that work for constexpr initialisation, without allocating memory=
?
>>>>
>>>> --
>>>> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>>>>    Software Architect - Intel Open Source Technology Center
>>>>       PGP/GPG: 0x6EF45358; fingerprint:
>>>>       E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>>>>
>>>>  --
>>>
>>> ---
>>> 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-proposal...@isocpp.org.
>>> To post to this group, send email to std-pr...@isocpp.org.
>>> Visit this group at
>>> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>>>
>>
>>
>>
>> --
>>  Nevin ":-)" Liber  <mailto:ne...@eviloverlord.com>  (847) 691-1404
>>
>  --
>
> ---
> 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.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

--=20

---=20
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 e=
mail to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposa=
ls/.

--089e014946004f8274051406b18d
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">Changing the vector class will not necessarily solve inheren=
t ambiguity because initializer list has preference over constructor calls.=
 <br>
Initializer can always be called by mistake if the intended parameters are =
the same type, although such cases are small I believe but having such a sy=
ntax will make the programmer&#39;s intention clear </p>
<div class=3D"gmail_quote">On Apr 18, 2015 10:42 PM, &quot;Alexander Marino=
v&quot; &lt;<a href=3D"mailto:sasho648@mail.bg">sasho648@mail.bg</a>&gt; wr=
ote:<br type=3D"attribution"><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr=
">Yeah after ISO released them. Maybe you&#39;re right. Then perhaps it wil=
l be better to modify the &#39;std::vector&#39; class instead. I don&#39;t =
think adding new syntax for such a small thing will be accepted.<br><br>=D0=
=BD=D0=B5=D0=B4=D0=B5=D0=BB=D1=8F, 19 =D0=B0=D0=BF=D1=80=D0=B8=D0=BB 2015 =
=D0=B3., 0:18:25 UTC+3, Nevin &quot;:-)&quot; Liber =D0=BD=D0=B0=D0=BF=D0=
=B8=D1=81=D0=B0:<blockquote class=3D"gmail_quote" style=3D"margin:0;margin-=
left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">On=
 18 April 2015 at 16:09, Alexander Marinov <span dir=3D"ltr">&lt;<a rel=3D"=
nofollow">sash...@mail.bg</a>&gt;</span> wrote:<br><div><div class=3D"gmail=
_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border=
-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">It should work all =
the cases that=C2=A0*std::initializer_list* do.</div></blockquote><div><br>=
</div><div><ol><li>Why??</li><li>What are the motivating use cases for init=
ializer_list being bad and array being good?</li><li>array has different co=
py semantics.</li><li>Using array would require all the constructors that u=
se it to be in the header, as you&#39;d have to templatize on the size of t=
he array.</li><li>Huge breaking change.</li></ol></div><div>=C2=A0</div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #=
ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div><br><br>=D0=BD=D0=B5=
=D0=B4=D0=B5=D0=BB=D1=8F, 19 =D0=B0=D0=BF=D1=80=D0=B8=D0=BB 2015 =D0=B3., 0=
:05:21 UTC+3, Thiago Macieira =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0:<blockqu=
ote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1=
px #ccc solid;padding-left:1ex">On Saturday 18 April 2015 14:02:40 Alexande=
r Marinov wrote:
<br>&gt; Well - very simple. You just need to replace *std::initializer_lis=
t *with
<br>&gt; *std::array*.
<br>
<br>Will that work for constexpr initialisation, without allocating memory?
<br>
<br>--=20
<br>Thiago Macieira - thiago (AT) <a href=3D"http://macieira.info" rel=3D"n=
ofollow" target=3D"_blank">macieira.info</a> - thiago (AT) <a href=3D"http:=
//kde.org" rel=3D"nofollow" target=3D"_blank">kde.org</a>
<br>=C2=A0 =C2=A0Software Architect - Intel Open Source Technology Center
<br>=C2=A0 =C2=A0 =C2=A0 PGP/GPG: 0x6EF45358; fingerprint:
<br>=C2=A0 =C2=A0 =C2=A0 E067 918B B660 DBD1 105C =C2=A0966C 33F5 F005 6EF4=
 5358
<br>
<br></blockquote></div></div></div><div><div>

<p></p>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a rel=3D"nofollow">std-proposal...@isocpp.org</a>.<br>
To post to this group, send email to <a rel=3D"nofollow">std-pr...@isocpp.o=
rg</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" rel=3D"nofollow" target=3D"_blank">http://groups.google.com=
/a/isocpp.org/group/std-proposals/</a>.<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
<div>=C2=A0Nevin &quot;:-)&quot; Liber=C2=A0 &lt;mailto:<a rel=3D"nofollow"=
>ne...@eviloverlord.com</a>&gt;=C2=A0 (847) 691-1404</div>
</div></div>
</blockquote></div>

<p></p>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</blockquote></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--089e014946004f8274051406b18d--

.
