Skip to content

Remove generalized iteration only when there are no valid pairs or ipairs in the for expression #15

@jiwonz

Description

@jiwonz

It would be nice to add an option to check if the for loop's expression is already set to pairs or ipairs (although using next would be better, but still), and converting this is not necessary and may decrease performance.

If there is no interface to change the settings of the modifier, it might not be a bad idea to add it as a new modifier.

To check if a valid pairs or ipairs is set, you could check the block similar to the bit32 change to see if pairs or ipairs is set to something else.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions