0

What are the main reasons why someone would use let:

(let((x 4)) (+ x 12))

Instead of doing the same thing with a define:

(define x 4)
(+ x 12)

Would there be examples of things that would work with one that wouldn't work with the other approach?

samuelbrody1249
  • 4,379
  • 1
  • 15
  • 58
  • @RobertHarvey I started by reading that, but not really. All it says is that `let` is more consistently defined in the standard. I'm more looking for practical examples. – samuelbrody1249 Apr 12 '20 at 19:48
  • 1
    Read the accepted answer in that question, then refine your own question, asking more specifically about the things you didn't understand in the accepted answer. The answer *doesn't* just say that `let` is more consistently defined. – Robert Harvey Apr 12 '20 at 19:49
  • @RobertHarvey -- OP should read _all_ of the answers on the dupe before formulating a more specific question; each of the answers there has something to add. – ad absurdum Apr 12 '20 at 21:35

0 Answers0