[Nix-dev] Re: @ and default arguments

Eelco Dolstra e.dolstra at tudelft.nl
Fri Aug 27 14:12:53 CEST 2010


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.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list