4 ms·
> And the code most definitely is not idiomatic JavaScript. I would not consider this an improvement over the original Scheme version. in javascript function
by camus2 13y ago
> And the code most definitely is not idiomatic JavaScript. I would not consider this an improvement over the original Scheme version.
in javascript functions are data.While javascript doesnt allow lazy evaluation,it's good enough to teach most of SICP concepts.
For someone that knows basic javascript,it's good enough.
I dont agree with you saying it is not idiomatic javascript. There is nothing such as idiomatic javascript ,that's why people keep arguing on how to write javascript,javascript doesnt care. If javascript did care,it would be a different language.
Anyway my point is ,what matters are the concepts , not the language. Most SICP concepts can be taught in many different languages.It's not about LISP, or javascript. It could be Haskell,CAML,or even Python it doesnt matter.