Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by liontwist

1 year ago

Yes. the right thing to do is to treat a list as a general case and other uses of cons as special case

2 comments

liontwist

Reply

codr7  1 year ago

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.

  • liontwist  1 year ago

    Yes pairs is the 1980s lisp design, but it’s not good for modern caches. Both obviously work.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities