Or, if your Prolog has a suspension mechanism, you could write a typechecking demon that gets woken when the variable is bound or instantiated.
If you want a typed Prolog instead, check out Logtalk.
Or, if your Prolog has a suspension mechanism, you could write a typechecking demon that gets woken when the variable is bound or instantiated.
If you want a typed Prolog instead, check out Logtalk.
logtalk.org/learning/log...
logtalk.org/learning/log...