‹ BackHN Continuity

Thread

Why isn't mutable a subtype of immutable, or vice versa?

28 points · 56 comments · ibobev

  1. Sharlin · · focus · HN ↗
    As a total aside, the names `car` and `cdr` for "head" and "tail" are honestly some of the most baffling historical relics in all of computing.
    1. MiroslavPokorny · · focus · HN ↗
      What i dont understand is why does everything have to be so brief. Take car and cdr there is only one character difference, more character differences is a good thing not bad.
      1. Mikhail_Edoshin · · focus · HN ↗
        Names need to express not only differences, but also similarity.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.