Comment

Comment by dragonwriter

> I think line 3 could just be locatedIn(X, Y) :- locatedIn(X, Z), locatedIn(Z,Y).

This creates potential infinite recursion, which is why the other form is used.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton