‹ 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. kgwgk · · focus · HN ↗
        Why waste time say (write) lot (long) word when few (short) word do trick?
        1. MiroslavPokorny · · focus · HN ↗
          Most people actually write small amounts of code in a day, saving a single character here and there typing hardly matters. Its a saving that amounts to seconds for a days work.

          More characters on the other hand prevents many potential types of mistakes, such as meaning one statement of target and actually entering another.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.