Untyped Lambda Calculus, Church Numerals, and the Y Combinator in Go
While reviewing a Go API today — I noticed that this intriguing type is representable in the Go type system:
type V func(v V) V If you are like me — you see that type and think “wait, does that mean the untyped Lambda Calculus is representable inside the Go type system?”.
So let’s try…
First we need some concrete values — but there are no base types like int or bool, only the type V — so all we can hope for is Church encoded values.
lukehoban.com