[Issue 14682] [REG2.037] Incorrect interpretation of ~ []

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Jun 11 16:43:07 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=14682

--- Comment #9 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Vladimir Panteleev from comment #8)
> (In reply to Steven Schveighoffer from comment #6)
> > Could you do:
> > 
> > (config.noDateTime ? ["NODATETIME=nodatetime.ddoc"] : string[].init)
> 
> That's not where the problem lies - this was just an example.

I was responding to this:

(In reply to Vladimir Panteleev from comment #5)
> I think it should be fixed, because if you want to append [""], you can do
> so explicitly, but if you want to append an empty array, there is no
> convenient syntax for it.

I suppose you can call that "inconvenient" syntax, but it's not that bad IMO.

--


More information about the Digitalmars-d-bugs mailing list