News for hackers. Stuff that matters.
Re:Improving Programming Language Performance by trealira on Sunday December 10, 2023 @04:22AM (#38590315)
In Lisp, "let" is only used for binding the variable, and it comes with a scope.

  (let ((a 1)
        (b 2))
    (+ a b))
It's closer to the ML version of let, which works like this:

  let
      val a = 1
      val b = 2
  in
      a + b
  end
You can sequence expressions for side effects, as well.

  (let ((a 1)
        (b 2))
    (incf a)
    (do-it a b)
    (+ a b))

There are no comments on this comment yet.