News for hackers. Stuff that matters.
Re:Using Clojure for Web Apps by kazinator on Thursday December 12, 2019 @06:47PM (#21777799)
That parenthesis around let is important; it precisely delimits the scope for that x and y:

    (let [x 5 
          y 10]
      (foo x y))
    (foo x y) ;; now different x and y!
In C, I'm often doing:

  {
    foo *ptr = ...; // scope this just to this block.

  }
I don't want ptr to be visible other than in that block, especially if it has gone invalid/null.

The braces will be there if you program sanely and care about scope.

There are no comments on this comment yet.