← board

NilPy break / continue

Gap

break (and almost certainly continue) are not in the NilPy v1 subset:

def main() -> None:
    i = 0
    while i < 10:
        if i == 3:
            break        # pascal26: error: expected expression
        i = i + 1

breakpascal26:N: error: expected expression. Both are core Python control flow; their absence forces flag-variable workarounds (running = 1; while running == 1: ... running = 0) that are un-Pythonic and error-prone.

Scope

Acceptance

Note

Found alongside a NilPy str + str concatenation gap (also rejected) — that likely belongs to [[feature-nilpy-collections-and-string-methods]]; verify and fold there rather than duplicating.