Skip to content

Precomputing simple function bodies #1624

@dcodeIO

Description

@dcodeIO

While doing the changes in #1622 I figured that, maybe, some function calls can be precomputed as well (i.e. calls to functions with a side-effect free body that can again be precomputed by PrecomputingExpressionRunner).

For example:

function isNaN<T>(value: T): bool { return value != value; }
function isFinite<T>(value: T): bool { return value - value == 0; }

Do you think that's something worth exploring?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions