chatziko / lci

A lambda calculus interpeter
https://www.chatzi.org/lci/
GNU General Public License v2.0
64 stars 7 forks source link

Alternative List Implementation #10

Open HalosGhost opened 5 years ago

HalosGhost commented 5 years ago

It looks like an accepted alternative (to nested church pairs) implementation of lists in the lambda calculus is representing them as a right-fold.

There are a few benefits to this style:

The obvious negative is that it would require updating the term-printer to support this encoding rather than the current version.

Is this too much work for not enough gain?