On Tuesday, 5 April 2016 at 05:39:25 UTC, Timothee Cour wrote:
As for which syntax to use, that's an orthogonal question, but here I used i{} since {} (from C++11) is already used by delegates (with tuples also being discussed at some point, which didn't pan out bc someone mentioned it was ambiguous in some case; see my next email proposal below though [2])

----
{} // delegate (existing syntax)
q{...} // comment (existing syntax)
i{...} // uniform intialization (proposed syntax)
t{...} // tuple(a,b) (proposed syntax)
T{...} // TypeTuple!(a,b) (proposed syntax)
----

[1] http://programmers.stackexchange.com/questions/133688/is-c11-uniform-initialization-a-replacement-for-the-old-style-syntax
[2] EMAIL:proposed syntax for tuple: t{} and TypeTuple: T{}

D doesn't have initialization syntax problems that C++ has, so it doesn't need "uniformization" (it isn't really an uniformization, which is hillarious) of the syntax.

Reply via email to