4 ms·
Does it really need that "terra" keyword? You could use the type annotation to differentiate: -- lua function function foo(a,b) ... end -
by qznc 14y ago
Does it really need that "terra" keyword? You could use the type annotation to differentiate:
-- lua function
function foo(a,b)
...
end
-- terra function
function foo(a:int, b:int)
...
end
- daviddoran 14y agoI think it looks very clean. I've always liked Lua's use of full keywords (e.g. function and end) and if the function didn't take any arguments then how would you know it's a terra function?