News for hackers. Stuff that matters.
Re:MIT SICP Book in JavaScript by hinkley on Monday July 24, 2023 @12:21AM (#36843073)
Scheme is not a pure functional language. I think you need to check the rest of your notes.
Re:MIT SICP Book in JavaScript by andai on Monday July 24, 2023 @02:16PM (#36852136)
According to Let Over Lambda, Lisp is the least functional programming language ;)

https://letoverlambda.com/textmode.cl/guest/chap5.html

Re:MIT SICP Book in JavaScript by Sterm on Monday July 24, 2023 @05:55PM (#36854786)

    (define lol
      (let ((a 0))
        (lambda ()
          (set! a (+ a 1))
          a)))
Scheme is a functional programming language in the same way python is. The only difference is that it has tail call optimisation and the stack doesn't have an arbitrary limit on the number of function calls it can hold.