[Nix-dev] Re: Re: @ and default arguments

Yury G. Kudryashov urkud+nix at ya.ru
Fri Aug 27 14:40:51 CEST 2010


Eelco Dolstra wrote:

> Hi,
> 
> On 08/27/2010 02:03 PM, Yury G. Kudryashov wrote:
> 
>> Another proposal: what about "rec" for formal arguments? May be, in
>> double braces or something like that. This will simplify "url vs urls"
>> part of fetchurl header to
>> 
>> {{ url ? null, urls ? [url]}}:
> 
> Defaults values can refer to other arguments, so this works already.
Ah, thanks. I should've check this before asking to implement.





More information about the nix-dev mailing list