[Nix-dev] nix extension proposal

Yury G. Kudryashov urkud+nix at ya.ru
Sat May 15 00:22:32 CEST 2010


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?




More information about the nix-dev mailing list