On Wednesday, 2 May 2012 at 05:25:40 UTC, Andrej Mitrovic wrote:
On 5/2/12, Andrei Alexandrescu <seewebsiteforem...@erdani.org>
wrote:
struct S { int x, y; }
S s = { 1, 2 };
I think we should remove
this feature.
But not this, right:
S s = { x : 1, y : 2 }; ?
Yes, these are named parameters.
Andrei's point could be made for just about everything that takes
two (or more) consecutive integers, like a function signature, so
I think it's a bit moot. Unfortunately, only named parameters can
solve this problem, but then comes the problem of accepting both
order of parameters and named parameters at the same time...