[Nix-dev] Not understanding evaluation of with inside let

Vladimír Čunát vcunat at gmail.com
Mon May 16 00:06:05 CEST 2016


Hi.

On 05/15/2016 10:25 PM, Harald van Dijk wrote:
> So what's going on here?

It's the plain fact that `with` is "low-priority" in nix. Any identifier
introduced by `with` is only used if it isn't found elsewhere.

I agree it can seem confusing, at least at first. I'm not sure if it's
documented somewhere, but we've had quite a few discussions on that
topic already.

--Vladimir


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3771 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160516/a83060c5/attachment.bin 


More information about the nix-dev mailing list