Closed
Description
It's interesting that this is valid syntax in Julia and Lua:
function rec()
return rec()
end
The difference is that in Lua, when you call rec()
it will stare at you and engage your motherboard's built-in space heater until you ctrl-C out. In Julia:
julia> rec()
ERROR: stack overflow
in rec at none:2 (repeats 80000 times)
So the stack 80000 things deep. That's interesting.
Why does this matter? I'm not sure. But some people care a lot: