2 ms·
>> 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
by YeGoblynQueenne 9y 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 9y agoand correspondingly, a good Prolog programmer can write Prolog in any language. Limerick: "Some rascal wrote Pascal in Haskell."
- YeGoblynQueenne 9y 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 9y 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-...