[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/118: Rephrase @ operator description
From: |
Ludovic Courtès |
Subject: |
11/118: Rephrase @ operator description |
Date: |
Tue, 19 May 2015 14:45:13 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit 8ea9fd7aa6b2152f95724e504ac61c57d90b113c
Author: Adam Szkoda <address@hidden>
Date: Sun May 25 10:54:54 2014 +0200
Rephrase @ operator description
---
doc/manual/writing-nix-expressions.xml | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/doc/manual/writing-nix-expressions.xml
b/doc/manual/writing-nix-expressions.xml
index 5585e89..6db2adc 100644
--- a/doc/manual/writing-nix-expressions.xml
+++ b/doc/manual/writing-nix-expressions.xml
@@ -1060,15 +1060,14 @@ map (concat "foo") [ "bar" "bla" "abc"
]</programlisting>
and <varname>z</varname>.</para></listitem>
- <listitem><para>An <literal>@</literal>-pattern requires that the
- argument matches with the patterns on the left- and right-hand side
- of the <literal>@</literal>-sign. For example:
+ <listitem><para>An <literal>@</literal>-pattern provides a means of referring
+ to the whole value being matched:
<programlisting>
address@hidden x, y, z, ... }: z + y + x + args.a</programlisting>
Here <varname>args</varname> is bound to the entire argument, which
- is further matches against the pattern <literal>{ x, y, z,
+ is further matched against the pattern <literal>{ x, y, z,
... }</literal>.</para></listitem>
- 10/118: Remove ExprBuiltin, (continued)
- 10/118: Remove ExprBuiltin, Ludovic Courtès, 2015/05/19
- 09/118: Make the Nix search path declarative, Ludovic Courtès, 2015/05/19
- 04/118: Ugly hack to allow --argstr values starting with a dash, Ludovic Courtès, 2015/05/19
- 19/118: Report daemon OOM better, Ludovic Courtès, 2015/05/19
- 06/118: Add primop ‘scopedImport’, Ludovic Courtès, 2015/05/19
- 21/118: Add autoloads, make code more concise & idiomatic, Ludovic Courtès, 2015/05/19
- 25/118: Fix bogus warnings about dumping large paths, Ludovic Courtès, 2015/05/19
- 20/118: == operator: Ignore string context, Ludovic Courtès, 2015/05/19
- 17/118: nix-env -qa --json: Generate valid JSON even if there are invalid meta attrs, Ludovic Courtès, 2015/05/19
- 23/118: findFile: Realise the context of the path attributes, Ludovic Courtès, 2015/05/19
- 11/118: Rephrase @ operator description,
Ludovic Courtès <=
- 29/118: Merge branch 'shlevy-import-native', Ludovic Courtès, 2015/05/19
- 12/118: dev-shell is a bash script, not sh, Ludovic Courtès, 2015/05/19
- 22/118: Share code between scopedImport and import, Ludovic Courtès, 2015/05/19
- 26/118: Don't use member initialisers, Ludovic Courtès, 2015/05/19
- 31/118: Add `--json` argument to `nix-instantiate`, Ludovic Courtès, 2015/05/19
- 18/118: Print a warning when loading a large path into memory, Ludovic Courtès, 2015/05/19
- 27/118: Add importNative primop, Ludovic Courtès, 2015/05/19
- 24/118: Drop ImportError and FindError, Ludovic Courtès, 2015/05/19
- 28/118: Only add the importNative primop if the allow-arbitrary-code-during-evaluation option is true (default false), Ludovic Courtès, 2015/05/19
- 30/118: allow-arbitrary-code-during-evaluation -> allow-unsafe-native-code-during-evaluation, Ludovic Courtès, 2015/05/19