Skip to content

Use namespaces for modules #14

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

Open
sarmong opened this issue Feb 14, 2025 · 3 comments
Open

Use namespaces for modules #14

sarmong opened this issue Feb 14, 2025 · 3 comments

Comments

@sarmong
Copy link

sarmong commented Feb 14, 2025

require('async' and require('tutorial') may interfere with other modules in user's config or other path.

It's best to use namespace (directory) for them - require('lua-async-await.async'), require('lua-async-await.tutorial')

@ms-jpq
Copy link
Owner

ms-jpq commented Feb 17, 2025

thats fine, this is just a tutorial :D

@ms-jpq ms-jpq closed this as completed Feb 17, 2025
@sarmong
Copy link
Author

sarmong commented Feb 17, 2025

This also applies to the lib code - require('async')

@ms-jpq
Copy link
Owner

ms-jpq commented Feb 17, 2025

ah i see what you mean, like to make the lib code obey the name spacing rules.

i guess that can be done, i don't have the bandwidth for that right now though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants