Hello Domen,

Thus quoth  Domen Kožar  at 12:16 on Mon, May 29 2017:
>
> Note that this will fail if you'll nest the attributes, one will override
> the other.
>
> nix-repl> :p concatAttrs [ {x={a =3;};} {x={ b= 4;};} ]
> { x = { b = 4; }; }

Sure, that seems to follow naturally from the semantics of //.

Now, indeed, I didn't at all take into account the potential complexity
of the attribute sets and just focused on my simple use case.  Thanks
for pointing me to other situations.

--
Sergiu

Attachment: signature.asc
Description: PGP signature

_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to