Skip to content

TCO in StaticOptimizer #623

@He-Pin

Description

@He-Pin

I think it's possible to do TCO in StaticOptimizer and does not need the tailstrict.
#619

Eg:

local sum = function(n, acc=0)
    if n == 0 then
      acc
    else
      sum(n - 1, acc + n); 

sum(100000) 

should work without tailstrict

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