[Nix-dev] Re: [Nix-commits] SVN commit: nix - 12621 - eelco - in nix/trunk: src/libexpr tests/lang
Eelco Dolstra
e.dolstra at tudelft.nl
Thu Aug 14 17:09:39 CEST 2008
Hi,
Nicolas Pierron wrote:
> On Thu, Aug 14, 2008 at 16:43, Eelco Dolstra <e.dolstra at tudelft.nl> 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/
More information about the nix-dev
mailing list