hexaredecimal / ML

A small general purpose programming language for programming on the JVM. Package manager: https://smllregistry.github.io/
https://smllang.gitbook.io
Apache License 2.0
11 stars 1 forks source link

Circular Dependencies #11

Closed hexaredecimal closed 2 months ago

hexaredecimal commented 2 months ago

Currently the compiler optimizes the imports by importing definitions only once. If they are defined and used in multiple places, it doesn't cause a problem. The problem rises when we import two files that reference each other, the solution is to cache import paths and don't re import at all when the path is already cached.

hexaredecimal commented 2 months ago

Patched by the end of the day, :)