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

"The most severe in my opinion is assignment."

Clojure solves this problem by going all the way to the opposite extreme. "No assignment for you." Clojure data structures are immutable, and if you really want to do assignment, you need to explicitly use a ref/var/atom, which means you are going to figure out a way to write your program without assignment if at all possible. Clojure, of course, is designed around functional programming that has many idioms to make assignment-less programming the natural way to do things.

I guess what this means is that Clojure can appeal to Python/Ruby/Perl hackers wanting to learn a different way to think about programming.



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

Search: