[Nix-dev] Attribute selection with default
Eelco Dolstra
e.dolstra at tudelft.nl
Thu Sep 24 14:31:40 CEST 2009
Michael Raskin wrote:
> Eelco Dolstra wrote:
>> Well, given that this would be only the fourth minor syntax addition in about
>> two years (after a.b.c syntax in attribute sets, ellipses in function arguments,
>> and @-patterns - and one feature removal), Perl is quite far off ;-)
>
> The problem is not about the count. Previous additions were nice for
> reading from the beginning to the end. This is less nice.
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...)
--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
More information about the nix-dev
mailing list