1.7.1.12 speculative(Cond)

-spec speculative(speculative()) -> t().

Sometimes a condition doesn’t know the recipe to resolve a precondition, but it assumes that it will be resolved eventually somehow. For example, a module in application X can use a parse transform declared in another application, but it doesn’t know which one. We call this situation speculative precondition.

This function is a built-in condition that serves as a placeholder in such situations. While ANVL can detect unresolved speculative preconditions, it’s better to make all dependencies explicit. Therefore, this functionality should be used as the last resort.

Returns a Cond token that represents the result.

JavaScript license information