Diagnostics on deduced atoms: trace the derivation back to written facts #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A diagnostic about a written fact gives its location. An
error/2atom whose fact at fault is only deduced (a default value, a computed field, a member derived by a rule) has no location of its own:Loaf.atom.atis empty for it, and the interchange format has noateither.The diagnostic should instead lead to the written facts the atom comes from, and to the rule that reports the error: for instance the chain of rules and the locations of the facts in their bodies, or at least the facts of the first written premise.
Questions:
error/2, computed on demand);Loaf.Diag.