|
|
||
|
I'm coming to agree with Fabien that any meta-extension should be used
to add _new_ things to Lua, not confuse the issue with curly braces ;)
The proposal of the day: type annotations for function 'prototypes':
function F(String s, Number t)
...
end
The actual code that the compiler sees is this:
function F(s,t)
_assert_type(s,"string","s")
_assert_type(t,"number","t")
....
end