Open fperrad opened 6 months ago
Thanks for the report! This is definitely a bug that needs fixing.
return bar()
Is the goal here to trigger a tail call? It surprised me a bit which of the two options you marked as idiomatic — I usually never return f()
from 0-ary functions, to help the reader spot that nothing is being returned.
I guess it varies but I tend to agree with @fperrad: I always return f()
from 0-ary functions in Lua, in part because of the tail call.
Note: with
nil
as explicit return, the checker is happy