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

add a flag to the compiler to add explicit dependencies #279

Open
kurinoku opened this issue Dec 8, 2021 · 3 comments
Open

add a flag to the compiler to add explicit dependencies #279

kurinoku opened this issue Dec 8, 2021 · 3 comments

Comments

@kurinoku
Copy link

kurinoku commented Dec 8, 2021

Basically there are cases where one could want to dynamically require a folder full of scripts, and without having a way to tell the compiler what to compile regardless of explicit dependencies, one ends up using cheap tricks.

@stchang
Copy link
Member

stchang commented Dec 8, 2021

Could you say more about the use case here? Why cant the dependencies be determined from the program?

@sorawee
Copy link

sorawee commented Dec 8, 2021

I think @kurinoku is referring to https://racket.discourse.group/t/racketscript-dynamically-require-all-racket-files-in-a-directory/379.

@kurinoku
Copy link
Author

kurinoku commented Dec 8, 2021

I have written more about the use case in a comment on #278, but then I sort of start to doubt this should be supported because it's not really good practice to load modules like that, although if you were working with some sort of extension system, it might be of use, where you are not explicitly requiring modules that are supposed to be loaded at runtime.

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

3 participants