←back to thread

Learn Prolog Now

(lpn.swi-prolog.org)
205 points rramadass | 2 comments | | HN request time: 0.417s | source
Show context
mattbettinson ◴[] No.45901799[source]
In university, Learning prolog was my first encounter with the idea that my IQ may not be as high as I thought
replies(3): >>45901997 #>>45902026 #>>45902202 #
1. vidarh ◴[] No.45902202[source]
I also found it mindbending.

But some parts, like e.g. the cut operator is something I've copied several times over for various things. A couple of prototype parser generators for example - allowing backtracking, but using a cut to indicate when backtracking is an error can be quite helpful.

replies(1): >>45903943 #
2. exasperaited ◴[] No.45903943[source]
"Keep your exclamation points under control. You are allowed no more than two or three per 100,000 words of prose."

Elmore Leonard, on writing. But he might as well have been talking about the cut operator.

At uni I had assignments where we were simply not allowed to use it.