Hi!
AFAICS, nix supports any string as a key in attr set, but { name = value; }
syntax only supports "simple" strings.
What do you think about the following:
x = {
'very strange.name' = "value";
'0.2' = "another value";
}
builtins.attrNames x == [ "very strange.name" "0.2" ]
I know that the same currently can be achieved using listToAttrs.
Of course, there are two questions: (1) do you want this feature; (2) would
it be hard to implement?
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev