4 ms·
Prolog has print statements you can stick anywhere. (It also has proper debuggers that allow you to go forward and backward and all that.) Also, Prolog code is
by tom_mellior 8y ago
Prolog has print statements you can stick anywhere. (It also has proper debuggers that allow you to go forward and backward and all that.)
Also, Prolog code is often "split into digestible chunks". Even more than other languages, in fact, because it's rather hard to write nested loops or nested predicates or nested many other things.
If you were ever taught Prolog, it seems that you weren't taught well. You might want to risk a second look.
- YeGoblynQueenne 8y ago>> Also, Prolog code is often "split into digestible chunks". Even more than other languages, in fact, because it's rather hard to write nested loops or nested predicates or nested many other things. I find it very easy to write nested loops in Prolog: findall(A ,findall(B ,findall(D ,findall(...) ,G) ,E) ,C) To paraphrase the old saying, a good Python programmer can write Python in any language.
- tabtab 8y agoand correspondingly, a good Prolog programmer can write Prolog in any language. Limerick: "Some rascal wrote Pascal in Haskell."
- YeGoblynQueenne 8y ago>> and correspondingly, a good Prolog programmer can write Prolog in any language. And a really good one can even write it in Prolog.
- nickpsecurity 8y agoAnd on a Prolog CPU developed with Prolog... http://hps.ece.utexas.edu/pub/singhal_isca16.pdf http://hps.ece.utexas.edu/pub/singhal_isca16.pdf https://www.researchgate.net/publication/220760154_A_Prolog-Based_Hardware_Development_Environment https://www.researchgate.net/publication/220760154_A_Prolog-...