Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Consider:

  (define x (vector 1 2 3 4))
  (define y x)
  (vector-set! x 0 100)
Should y[0] be 100 or 1?


That's not really relevant. According to the guy's own definition, Scheme is as immutable as Clojure, which is what he was specifically asking. They both have something like set!. If you want to wank off about Scheme not being 100% immutable, go right ahead, but it's clearly not what was being discussed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: