3 ms·
In that case you can separate ’struct Widget’ into another file. This way there will be no circular dependency
by vasergen 6y ago
In that case you can separate ’struct Widget’ into another file. This way there will be no circular dependency
- edflsafoiewq 6y agoI know how to break the cycle. What I'm asking is why should I break the cycle?
- vasergen 6y agoIt depends on situation. As an example, it could be difficult to write tests when you have circular dependency. As well depends on the language there could be strange ’side effects’ which would be difficult to debug.