guix/corepkgs
Eelco Dolstra 37d7abd694 * New language feature: with expressions.
The expression `with E1; E2' evaluates to E2 with all bindings in
  the attribute set E1 substituted.  E.g.,

    with {x = 123;}; x

  evaluates to 123.  That is, the attribute set E1 is in scope in E2.

  This is particularly useful when importing files containing lots
  definitions.  E.g., instead of

    let {
      inherit (import ./foo.nix) a b c d e f;

      body = ... a ... f ...;
    }

  we can now say

    with import ./foo.nix;

    ... a ... f ...

  I.e., we don't have to say what variables should be brought into scope.
2004-10-25 16:54:56 +00:00
..
buildenv * New language feature: with expressions. 2004-10-25 16:54:56 +00:00
channels * Dist error. 2004-04-21 14:57:46 +00:00
fetchurl * Channels. These allow you to stay current with an evolving set of 2004-04-21 14:54:05 +00:00
nar * Switched from wget to curl. 2004-04-06 08:18:51 +00:00
nix-pull * Adapted nix-pull to use the new substitute mechanism. 2004-06-21 09:51:23 +00:00
Makefile.am * Adapted nix-pull to use the new substitute mechanism. 2004-06-21 09:51:23 +00:00