PistonDevelopers / PistonDevelopers/dyon
Loading module from a folder
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.9k
- Forks
- 56
- Avg merge
- 1m
- Merged PRs (30d)
- 6
Description
With namespaces it is possible to derive the loading order automatically from the use statements. An algorithm could look at all the files in a folder and figure out how the best way to load them. If a file uses a namespace that is used by another file, then the first file gets loaded and before the second.
This should be as simple as loading from a file, e.g. by adding support for loading from a folder in the load and load__source_imports intrinsics.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the load and load__source_imports intrinsics and reading how they currently load a file. Determine how folder contents and namespace relationships should be ordered from use statements. Done means loading a folder works through the same mechanism as loading a file and respects those dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100