2 ms·
Logic programming is very useful and absolutely worth learning, like object-oriented programming and functional programming. Unfortunately, the Prolog implemen
by kazinator 10y ago
Logic programming is very useful and absolutely worth learning, like object-oriented programming and functional programming.
Unfortunately, the Prolog implementation of logic programming, arguably, not so much.
An alternative is to find some general purpose language which supports Prolog semantics as a library.
E.g. one example is miniKanren, which has been implemented in a number of languages, many of them Lisps but not all:
http://minikanren.org/#implementations http://minikanren.org/#implementations
https://stackoverflow.com/questions/28467011/what-are-the-main-technical-differences-between-prolog-and-minikanren-with-resp https://stackoverflow.com/questions/28467011/what-are-the-ma...
If you're using something like miniKanren, you've got the logic programming, plus the rest of the language in which to do other things in other ways.
The idea that you specifically have to use Prolog for logic programming is as outdated as the idea that to do OOP, you must use Smalltalk.