Comment by liontwist
16 days ago
Yes. the right thing to do is to treat a list as a general case and other uses of cons as special case
16 days ago
Yes. the right thing to do is to treat a list as a general case and other uses of cons as special case
I've flipped that idea around in a few of my own language designs, where pairs are the central feature and lists are just pairs with pair cdrs. Works fine from what I can see.
Yes pairs is the 1980s lisp design, but it’s not good for modern caches. Both obviously work.