deps: document ; vs , in the expr param help (independent edges vs sibling groups) #353
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#353
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Wiring several independent dependency edges in one
deps_addcall, my instinct is to comma-separate them like a list:But
,groups siblings into one group, so that parses as4 -> {18,5} -> {18,6} -> ...and errors with a self-dependency (18 -> 18). The correct form for independent edges is;:The behavior is correct, and the error message is genuinely helpful - it explains the
,semantics and points at;with an example, so recovery is one shot.The gap is discoverability before the error: the
exprparameter help shows only the single-edge form (A -> B) and defers the multi-edge grammar tohelp topic=deps. Since comma-as-list is the natural first guess for "several independent things", it's an easy footgun.Ask: inline a one-liner in the
exprparam description, e.g. ";separates independent edges;,groups siblings into one group (A -> B, C= A depends on both B and C)." Optionally add a "did you mean;?" nudge on the self-dependency error, though it already gets close.