documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Module Dependencies should be replaced with function dependencies

Open Development-Begins opened this issue 3 years ago • 1 comments

If a function 'a', present in module Bar, is called from function 'b' in Foo and a function 'c' present in module Foo is called from function 'a' in Bar, function 'c' does not call any function. Then this leads to cycle dependencies, while it should not.

Development-Begins avatar Jun 11 '21 05:06 Development-Begins

I think this could be hard to justify in that some backends might have to radically adjust how they compile modules in order to support circular module dependencies. I think this is doable in JS once we have switched to ES modules, but other backends might have a harder time.

hdgarrood avatar Jun 11 '21 12:06 hdgarrood