Features of good Prolog code? [closed]
问题 What are the design heuristics one has to master to write good Prolog? I've heard it takes an experienced programmer about two years to become proficient in Prolog. Using recursion effectively is part of it, but that seems to be a relatively minor hurdle. What exactly is it that gives programmers so much trouble? What should I be looking for in sample code to judge its quality? 回答1: The major difficulty in writing good Prolog code lies in not only understanding but also adequately