Closed cattokomo closed 1 year ago
Hello! I have suggestion to make
tl.lua
to be more restrictive with types declaration and things, like thetl
compiler.
The tl.lua
file IS the teal compiler, just already compiled to lua. So, I'm not sure what you mean with this.
The tl.lua file IS the teal compiler, just already compiled to lua. So, I'm not sure what you mean with this.
I mean the tl.lua
should throw error if there's wrong type or things, like the above.
Again, tl.lua
is the teal compiler, there is no difference between tl.tl
and tl.lua
. please explain how you are running it.
If you want the lua VM to be able to load teal scripts and check for errors then I thought that https://github.com/teal-language/tl/commit/16761188d64a14b9a31c09ff18d6ff7b8715d4cf was to get that working? Might be wrong though.
That's what I looking for!
Hello! I have suggestion to make
tl.lua
to be more restrictive with types declaration and things, like thetl
compiler.The reason I want to have more static typed
.tl
modules/scripts for Tluvit loader. With this feature being added totl.lua
, this giving others who didn't know Teal is interested of using it within any Lua runtime.Example
In
mdl.tl
:In
maintl.tl
:And then run the
maintl.tl
inmain.lua
with coderequire 'tluvit'.loadtl()
(Luvit runtime)