Skip to content

Should we move our constant folding optimizations to a single place in the code? #77

@hugomg

Description

@hugomg

Currently, there is constant folding logic spread around the whole compiler. The parser does constand folding for .. operators and the code generator does some constant folding in the parameters of numeric for loops.

Perhaps these would belong together in a separate constant folding subroutine?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions