We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a58a22 commit 622fabeCopy full SHA for 622fabe
1 file changed
adr/20260312-record-syntax-unification.md
@@ -80,10 +80,20 @@ process FASTQC {
80
}
81
```
82
83
+The output can optionally be an assignment with a type annotation:
84
+
85
+```nextflow
86
+ output:
87
+ result: FastqcResult = record(
88
+ id: sample.id,
89
+ html: file('*.html'),
90
+ zip: file('*.zip')
91
+ )
92
+```
93
94
- Good, because input block syntax mirrors the top-level `record` definition.
95
- Bad, because two different notations for the same concept in the same process definition.
96
- Bad, because `Record { ... }` block syntax only exists in input declarations — it is not a general-purpose construct.
-- Bad, because output `record()` as a bare statement (no assignment) doesn't allow naming the output.
97
98
### Option 2: Block syntax for both inputs and outputs
99
0 commit comments