On Sunday, 29 April 2012 at 01:36:10 UTC, Jonathan M Davis wrote:
On Saturday, April 28, 2012 18:24:20 H. S. Teoh wrote:
then you can do
auto s = S(5, 7.2, "hello");
The ability to do
S s = {5, 7.2, "hello"};
gains you _nothing_.
Depends on how many levels you are using on a array. I've noted
in another part of this topic where I have pages and pages of the
data. Forcing me to qualify it with a name when the
compiler/structure already knows just seems like an annoyance.
True it removes the {}'s, but I think I have 3 levels of deep.
S[] s = [S(),S(),S()];
vs
S[] s = [{},{},{}];
If they are more complex, then indenting and separation makes
sense. And the size of the name I don't want to have to Alias my
structures to something tiny and a little obfuscate in order to
keep it compact and simple. That's my thoughts anyways. If the
language later disallows it, I'll have to change my code to
compensate for it.