4 ms·
What does your last sentence mean?
by canadianfella 5y ago
What does your last sentence mean?
- nextaccountic 5y agoHere's my attempt at parsing it: it means that compared to Prolog, Python feels very limited; just like BASIC is a limited language compared to Pascal and Modula-2. But I think this ignores that nowadays people just write custom DSLs embedded in a more general programming language, so for example you can use a logic programming library in Python. With it, one can use logic programming to solve some domain, but still use regular Python code for doing everything else (handling persistence, user interaction, etc) Here's how such library would look like https://github.com/pythological/kanren https://github.com/pythological/kanren - this HN thread discusses it https://news.ycombinator.com/item?id=18698718 https://news.ycombinator.com/item?id=18698718 (people implemented this DSLs embedded in many languages, not just Python)