4 ms·
Node and Python also don't really work with circular imports.
by winrid 3y ago
Node and Python also don't really work with circular imports.
- himujjal 3y agoPython doesn't work with circular imports. NodeJS does. After using NodeJS for such a long time, I think it is a feature that is taken for granted. That being said, the Nim team is working on it as per a few issues: [1] https://github.com/nim-lang/rfcs/issues/6 https://github.com/nim-lang/rfcs/issues/6 [2] https://forum.nim-lang.org/t/2114 https://forum.nim-lang.org/t/2114 I love the language, and this is probably the only bottleneck for me.
- winrid 3y agoNode really doesn't work with circular imports. There are runtime gotchas with it, for example destructuring a cyclic import via require() will give undefined for the destructured values as they "don't exist yet". Glad to see progress on the Nim side!