Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split up code into multiple files #549

Open
makspll opened this issue Aug 14, 2022 · 1 comment
Open

Split up code into multiple files #549

makspll opened this issue Aug 14, 2022 · 1 comment
Labels
feature request New feature or request

Comments

@makspll
Copy link

makspll commented Aug 14, 2022

As it stands it's difficult to parse through and contribute to this project,

splitting the main file into multiple would make this easier.

Is this something that's possible without breaking the public interface ?

@lenscas
Copy link
Contributor

lenscas commented Aug 14, 2022

There are programs that bundle multiple lua files into 1 file (see #67 for some mentions).

So, in theory it should be possible to keep the API exactly the same and even keep distributing the lua version of the teal compiler as a single file.

However, it would take careful consideration on how to split the project up, especially as require() can be used to load the separate .tl files directly. Meaning that other projects can end up relying on API's that are meant to be internal only. (At least, to my knowledge there is no way in lua to prevent this?)

@hishamhm hishamhm added the feature request New feature or request label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants