Use destructuring syntax for process record/tuple inputs#6912
Use destructuring syntax for process record/tuple inputs#6912bentsherman merged 2 commits intomasterfrom
Conversation
✅ Deploy Preview for nextflow-docs-staging canceled.
|
|
Great discussion overall. I would be keen to incorporate this somehow into the record type ADR, since we did discuss some of these options throughout the process but I didn't include them as alternatives in the original ADR Would be good to document these alternatives so that we have the clear rationale for the final syntax |
This comment was marked as outdated.
This comment was marked as outdated.
4d22995 to
30b8440
Compare
|
Updated ADR: Unified constructor notation for Key changes in this update:
The core value: users learn one pattern and apply it everywhere. The only choice is positional ( |
2c51e4f to
7e2441d
Compare
christopher-hakkaart
left a comment
There was a problem hiding this comment.
I've made two comments: one typo and one language suggestion. Otherwise the docs look good.
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
c7bb702 to
c2f631f
Compare
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
Summary
record()function-call notation uniformly for both process inputs and outputsRecord { ... }block syntax currently used only in input declarations=) and type annotation (: Type) patterns already present in process I/OCurrent (asymmetric):
Proposed (uniform):
Test plan
🤖 Generated with Claude Code