News for hackers. Stuff that matters.
Re:P-99: Ninety-Nine Prolog Problems by mrighele on Thursday December 12, 2019 @10:15AM (#21772418)
Lists allow to express certain constraints in more natural way, like "John has three cats at least one of which is male" or "I want a list of all the people that have at least three friends in common".

You don't have to use lists, but that means code duplication and low maintainability (i.e. instead of stating a condition and "repeating" for all the element of the list, you have to duplicate it explicitly).

It is not so much different from a regular language in this regard: you can write Java without using lists and use a variable for every single element, but who wants to do that ?

Re:P-99: Ninety-Nine Prolog Problems by wruza on Thursday December 12, 2019 @10:38AM (#21772682)
I didn’t think about it that way. Nice insight, thank you and all commenters here for your explanations!