Why do miniKanren names always end with `o`?
Asked Answered
B

2

8

All miniKanren relations end with the letter o. What is the motivation for this? I see that the Clojure core.logic library also does this.

Beet answered 6/2, 2012 at 17:5 Comment(0)
U
12

In the Preface of The Reasoned Schemer, they explain it thus:

A relation, a function that returns a goal as its value, ends its name with a superscript 'o' (e.g., caro and nullo).

So, it's a notation to denote a relation.

Unaccustomed answered 6/2, 2012 at 18:48 Comment(0)
B
5

It's because the authors of The Reasoned Schemer wanted the notation of miniKanren relations to be evocative of ordinary Scheme predicates which end in ? (e.g., null?, pair?) by convention. The superscript o, if you squint enough (and have heard this story before), looks like a modified ?.

Bove answered 8/2, 2012 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.