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

Revisit require lookup paths #13210

Open
straight-shoota opened this issue Mar 21, 2023 · 0 comments
Open

Revisit require lookup paths #13210

straight-shoota opened this issue Mar 21, 2023 · 0 comments

Comments

@straight-shoota
Copy link
Member

The documentation about requiring files and the actual implementation in Crystal::CrystalPath have some discrepancies.
This is not just a documentation error and instead some of the documented behaviour should indeed be implemented.

This topic was previously discussed in #10820, but it apparently only covered a part of it. At least since that discussion we have explicit specs about the compiler behaviour. That should make it easy to follow what's happening in the compiler. Actually, in the PR that
introduced the specs (#10876), I explicitly mentioned that we should probably make some changes. But there never was a follow-up.
So here it is now after it was brought up again in crystal-lang/crystal-book#677.

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

No branches or pull requests

1 participant