On Sunday, 25 April 2021 at 13:39:54 UTC, JN wrote:
struct Foo { int x, y, z; }void main() { Foo bar = Foo(1,); } This compiles without syntax errors, is this expected?
Yes, D allows trailing commas in argument lists.
Paul Backus via Digitalmars-d-learn Sun, 25 Apr 2021 07:30:34 -0700
On Sunday, 25 April 2021 at 13:39:54 UTC, JN wrote:
struct Foo { int x, y, z; }void main() { Foo bar = Foo(1,); } This compiles without syntax errors, is this expected?
Yes, D allows trailing commas in argument lists.