Hi. On 02/12/2016 12:11 PM, Sergey Mironov wrote: > I have an issue regarding the combination of two Nix features: > default parameters ( f = {arg ? def } : ...) and arbitrary length > parameters (f = args@{arg, ...} : ...).
@-pattern binds exactly what was *passed* to the function. Eelco considers that a feature IIRC. There's been a discussion about this on a couple of nix issues on github. Personally, I would prefer to bind the attrmap after substituting defaults, as that seems much more useful, but that would be a non-compatible change to nix... --Vladimir
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev