Skip to content

"for z in zip()" doesn't terminate #43821

@stevengj

Description

@stevengj
for z in zip()
    @show z
end

is an infinite loop, printing z = () over and over.

Arguably, it should execute once with z = (), or maybe throw an error, or maybe execute zero times (like Python), but in any case the current behavior seems bad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    iterationInvolves iteration or the iteration protocol

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions