[Issue 23393] JSONValue: Appending object to array fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 7 08:44:53 UTC 2022


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

--- Comment #1 from FeepingCreature <default_357-line at yahoo.de> ---
It is a bit unclear what `[a] ~= b` should even do if b *is* an array: `a ~ b`
or `a ~ [b]`. In D, this is normally disambiguated by the typesystem.
Unfortunately, JS does not have an array concat operator. Requiring ~ to be
array-plus-array may genuinely be the best solution.

--


More information about the Digitalmars-d-bugs mailing list