Repository navigation
One-liners keep state by position: -e before and after the -n/-p loop, and 'last' (D217, #957) - #3448
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #957. Delegated (D98; D217 records the brief): a CLI surface, easy to reverse, prediction 75%.
-eby position. Beside-nor-p,-ecode before the first loop part runs once before the loop and-ecode after the last runs once after it.-ebetween two loop parts is an error that says where each belongs.-nwith-pis still refused.lastis bound to whether the current line is the final one, when the code names it and does not declare its own.varin loop code is not hoisted: it is the loop body's, as in any loop.Diagnostics still point at the user's argument (
<cli -e #2>for code after the loop). One helper now appends a code part and maps it; the harness gains six cases; spec v7.65 (§18.5b.3 and the one-liner document); the instructions' parity table and the gap list are brought up to date.Battery green on the branch tip.