Fix underscore handling in nested pipes and non-function receivers #55

Merged
defunkt merged 1 commits from change-underscore into main 2026-01-29 04:57:46 +00:00
Owner

This changes the way we do _ so it's a real variable set with the result of the preceding piped expression, letting us use it in nested expressions.

Also enables piping to array literals and parenthesized expressions (e.g., 5 | [_ _ _]).

This changes the way we do `_` so it's a real variable set with the result of the preceding piped expression, letting us use it in nested expressions. Also enables piping to array literals and parenthesized expressions (e.g., `5 | [_ _ _]`).
defunkt added 1 commit 2026-01-28 03:13:56 +00:00
Add pipeVarStack to track pipe variables for nested pipes, allowing _
to correctly reference the innermost piped value. Also enable piping
to array literals and parenthesized expressions (e.g., `5 | [_ _ _]`).
defunkt merged commit 2994223cd5 into main 2026-01-29 04:57:46 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: probablycorey/shrimp#55
No description provided.