[Nix-dev] Attribute selection with default

Michael Raskin 7c6f434c at mail.ru
Thu Sep 24 16:58:00 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eelco Dolstra wrote:
> Nice in what way?  Do a grep on attrByPath in
> ./pkgs/build-support/builder-defs/builder-defs.nix and tell me that file
> wouldn't become more readable by getting rid of all those attrByPath calls :-)
> (Actually, most of them can also be eliminated by using default arguments...)

And I just don't like undelimited (unlike x.{a ? b}) ternary operator
with possibly multiple right hand side syntax elements.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJKu4j3AAoJEE6tnN0aWvw3om0H/3+xEYLSHolXBSXwCPK/WIXW
/odyEvzBDbjtEPxHK5Klw0saqFBoLLVEsHw1Nx8y00LlCu43iRk74K1CN7je9Erm
02eitIZTg3QyhpAOFDTDLFJ6c/MyC5X1QmBB+P6zNmHQsd28Eg21MZbseW+TlaUJ
viQm0kx4WfLaYAvAGEUrJX9Wevoc5NHLNIQlaWMy3A2I0yu5F/JMCft90memEHQa
QjldjDeAcWDn4jv8XCZpPHWBqKhQOwTXTrcpjdFi2itgBf7B3C6a5PqhqSotKBoy
UBbV6/p9OTwdx9B8JN3SNcLWNULRwfKF3ooMpXKFuHjRx6tVT+dezHHPSWB939g=
=a6YR
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list