Replies: 2 comments 3 replies
-
Very interesting! Thank you a lot for sharing this! I have two small syntax comments:
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Recently I have written a lot of Prolog code (mostly to interface with operating system) and I have found myself writing a lot of checks like
var(X) -> throw(...)
. There is a nice librarysi
, but it is too primitive (like assembly language) to my taste; also there ismust_be/2
from SWI-Prolog, but it isn't available universally either, so I wrote my own:Writing mode specification in the comments isn't validated in any way and also in many realistic cases simple
% mypred(?A,?B)
doesn't capture actual requirements well enough. Additional bonus: in release version I can just redefine:let(_).
if speed is important. What to you think? Does it have any obvious shortcomings?Beta Was this translation helpful? Give feedback.
All reactions