zeljkog: > I think that the proposed use of the operator $ a consistent and intuitive in > the context. > In this case ellipsis is unnecessary, "int [N] = [1];" automatically gets a > second intuitive meaning, consistent with the struct literal.
I don't understand what's the second intuitive meaning, so maybe it's not intuitive for me :-( > Question remains is it worth? In my opinion the $ syntax is worth regardless, because it saves me some time and some mistakes, it's short, I think it doesn't clash with other already present syntaxes, it's an additive change to D so it's backwards compatible and doesn't require deprecations, and probably a D programmer is able to understand/remember its meaning the second time he/she sees it, with no need to look in the D docs again (there are other D syntaxes that require me still to look in the D docs despite I have used them several times). I don't know if the ellipsis syntax is worth it, it is meant to allow an uncommon case. Bye, bearophile
