Proof of concept - library AA
Martin Nowak via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 8 01:23:58 PDT 2015
On Wednesday, 8 July 2015 at 06:11:25 UTC, Uranuz wrote:
> My idea is slihtly of topic.
> I thiking about some API for array and associative array
> literals.
There is already an API for array literals, typesafe variadic
arguments.
void foo(int[] literal...);
foo([0, 1, 2, 3]);
> But what do you thing about just about idea?
We discussed this already.
https://issues.dlang.org/show_bug.cgi?id=11658
AA and array literals come with literals coercion rules,
heterogeneous literals would make the semantics of the literal
depend on the callsite.
We already have TypeTuple/Arguments for heterogeneous tuples.
More information about the Digitalmars-d
mailing list