Hi,

On 09/05/2011 11:19 AM, Nicolas Pierron wrote:

+  optCall = f: x:
+    if builtins.isFunction f
+    then f x
+    else f;

Attributes that can be both functions or not are a bad habit that we shouldn't propagate further :-) It also makes behaviour of nixpkgs.config inconsistent with the semantics of the ~/.nixpkgs/config.nix. Is there a good reason for this?

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

Reply via email to