minimallist icon indicating copy to clipboard operation
minimallist copied to clipboard

Implement the `explain` function

Open green-coder opened this issue 5 years ago • 1 comments

The explain function should indicate the reason why a data would not match a model.

As Minimallist is less and less experimental, used by Vrac on large models, this function really start to become important.

green-coder avatar Oct 04 '20 08:10 green-coder

There is a problem .. on large models with a lot of :alt nodes, the error message will be huge and won't be helpful.

If we want to provide a useful error on the :alt node, we need an oracle which will say which branch of the model is the closest to match a value.

We might consider letting the user specify such oracle as an attribute of the :alt node.

green-coder avatar Oct 13 '20 01:10 green-coder