wolfe-pack / wolfe

Wolfe Language and Engine
https://wolfe-pack.github.io/wolfe
Apache License 2.0
135 stars 17 forks source link

Generate warning and error messages for unsupported parts of the model #51

Closed riedelcastro closed 9 years ago

riedelcastro commented 10 years ago

There is an unlimited amount of models clients could design, and an unlimited amount of writing down the same model. We should notify/warn (and possibly stop compilation) for models that aren't supported currently or for which we can't find optimizations.

riedelcastro commented 10 years ago

Generally warnings can be generated using context.warning. One example is now in the Conditioner. However, there it's easy because when a condition cannot be translated you know that's bad. However, with factors it's less clear because every double function is at least an atomic potential. The question is when atomic potentials warrant warnings? Maybe by number of arguments? Or total number of potential states?