dchambers / composerjs

The composable modelling library
1 stars 1 forks source link

How can we be sure we detect circular dependencies at set-up time now we support optional nodes and recursion? #23

Closed dchambers closed 9 years ago

dchambers commented 9 years ago

By default, optional nodes won't exist at the point the model is sealed, so any DAG analysis won't involve them. If we performed a separate DAG analysis where we did create a single instance of all optional nodes at define-time, then this would be better, but would still not catch problems due to recursion.

Ideally, we need a solution that allow us to statically determine whether circular dependencies could occur at use-time, at define-time.