[Nix-dev] Should you be able to call args: the same way as { .. } : ?

Eelco Dolstra e.dolstra at tudelft.nl
Fri Sep 25 14:14:19 CEST 2009


Hi,

Marc Weber wrote:

[snip]
> Does it make sense to allow nix-build (ing) from a file as show in 1) ?

Sure (for the `args@{...}' case that is), there is even a comment to that effect
in autoCallFunction() in eval.cc:

/* !!! this should be more general */
if (matchFunction(e, pat, body, pos) && matchAttrsPat(pat, formals, ellipsis)) {
...

It's just not implemented.

For a plain lambda (e.g. `args: ...') on the other hand, this is not possible
because there is no default value.

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



More information about the nix-dev mailing list