Skip to content

Deprecate SHORTEST mode being default with FOR IN ZIP loops #4685

Closed

Description

@pekkaklarck

RF 6.1 made it possible to configure what to do if lengths of lists iterated using FOR IN ZIP are different (#4682). The old default behavior to silently ignore items in longer lists (i.e. SHORTEST mode) was preserved, but we plan to require lengths to match (i.e. STRICT mode) by default in the future. Before changing the default, we should deprecate the old behavior. What needs to be done is to check that list lengths are same also if mode isn't set. If lengths don't match, there should be a deprecation warning instead of a failure, though.

Activity

  1. added this to the milestone on Mar 13, 2023
  2. modified the milestones: , v7.0 on Jun 2, 2023
  3. MobyNL commented on Jun 23, 2023

    @MobyNL
    Contributor

    I worked on this in #4806
    I also asked some questions in the #devel channel

    I also added a warning in case one or more of the items to zip through has no length (as is checked for STRICT mode as well) and no mode is set.
    Those cases will also fail when default mode is changed to STRICT

  4. self-assigned this
    on Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions