News for hackers. Stuff that matters.
Re:An Opinionated Treatise on Cosmos, a New Programming Lang... by abathologist on Tuesday November 18, 2014 @03:24PM (#8626094)
What the designer calls "functors" just appear to be positional records (or labeled tuples). In Lisp, a list is a series of nested pairs with an empty list as the last element: `(a . (b . ())`. The data structures the designer calls "functors" are just labeled pairs. The Lisp empty list, `()`, is the Cosmos term `Cons`, the Lisp pair `(a . ())` is the Cosmos compound term `Cons(a, Cons)`.

There are no comments on this comment yet.