‹ BackHN Continuity

Thread

What makes Lisp difficult to read?

47 points · 81 comments · ibobev

  1. tombert · · focus · HN ↗
    I'll repeat what other people here have been saying: I don't think Lisp is actually "hard" to read, in any objective sense.

    It's "difficult" to read because it's different that other languages, but I think some of those differences actually improve readability once you understand the language. The forced use of parentheses everywhere guarantees that precedence is never ambiguous, for example.

    1. so-cal-schemer · · focus · HN ↗
      I wouldn't say "never ambiguous" (at least for Scheme):

      140 Assignment introduces a subtlety into step 1 of the evaluation rule. As shown in Exercise 3.8, the presence of assignment allows us to write expressions that will produce different values depending on the order in which the subexpressions in a combination are evaluated. Thus, to be precise, we should specify an evaluation order in step 1 (e.g., left to right or right to left). However, this order should always be considered to be an implementation detail, and one should never write programs that depend on some particular order. For instance, a sophisticated compiler might optimize a program by varying the order in which subexpressions are evaluated.

      <a href="https:&#x2F;&#x2F;sarabander.github.io&#x2F;sicp&#x2F;html&#x2F;3_002e2.xhtml#FOOT140" rel="nofollow">https:&#x2F;&#x2F;sarabander.github.io&#x2F;sicp&#x2F;html&#x2F;3_002e2.xhtml#FOOT140

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.