Hisham Muhammad

Results 633 comments of Hisham Muhammad

Merged manually!

> I read in [the tutorial](https://github.com/teal-language/tl/blob/master/docs/tutorial.md#the-teal-standard-library-and-lua-compatibility) that the stdlib is declared as const, but I'm not sure the motivation for this The generated code makes assumptions that depend on the...

Data points: In November 2019, I ran a "Lua version census" (in the places I could reach: lua-l, Reddit, Twitter, etc.) and [the results](https://docs.google.com/forms/d/1yacI6dj0d9OD8P5nhNp3647amjeVHauCvgVw9K3otFM/viewanalytics) listed 32.4% of users still running...

Perhaps you have a different version of tl already installed and that is taking precedence during the test?...

Which Lua version is this on? Do you have the [compat53](https://github.com/keplerproject/lua-compat-5.3/) package installed? (You can install it with `luarocks install compat53`)

For the record (no pun intended!), this is a version that currently works: ```lua local type List = record new: function(initialItems: {T}): List end local type Fruit = enum "apple"...

And the second example is also fixed by now: ``` local type List = record new: function(initialItems: {T}): List end local type Fruit = enum "apple" "peach" "banana" end local...

> Further separate the compiler (tl.tl) from the cli (tl), as in make them separate modules Agree! I've been thinking about this. The names are something to figure out later,...

That's a super interesting topic! One could actually do the opposite even: a `.d.tl` file should contain all information needed to generate a `.c` file with the Lua bindings. You...

> Perhaps LuaAutoC could be adapted for this use case... I wasn't aware of LuaAutoC (really cool!), and reading about it, it does sound like it could do it, yes,...