Hi,

Nicolas Pierron wrote:

On Thu, Aug 14, 2008 at 16:43, Eelco Dolstra <[EMAIL PROTECTED]> wrote:
Nicolas Pierron wrote:

 This saves a lot of typing (not to mention not having to update
 all-packages.nix with purely mechanical changes).  It saves as much
 typing as the "args: with args;" style, but has the advantage that
 the function arguments are properly declared (not implicit in what
 the body of the "with" uses).
This was not implicit before ?
Sorry, I don't understand the question :-)

I mean does this following code suppose to pass before ?

({a}: true) {a=1; b=2;}

with no ellipses.

No, this didn't/doesn't work.

> Is there a special reason to refuse sets with extra
attributes ?

Well, you get a bit more error checking: if you pass a useless attribute, you get an error. Whether that's very helpful in practice is another matter...

--
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to