4 ms·
I wasn't aware that Clojure had a steeper learning curve. I'll do as you recommended: start with Scheme to grasp the basics of Lisp and eventually move on to mo
by olalonde 17y ago
I wasn't aware that Clojure had a steeper learning curve. I'll do as you recommended: start with Scheme to grasp the basics of Lisp and eventually move on to more advanced stuff. Thanks.
- dkersten 17y agoIMHO Clojures steeper learning curve comes from having more features built right into the language. Scheme is refreshingly simple, but Clojure gives me so much more, right out of the box: instead of being based around lists, as Scheme and Common Lisp are, Clojure is based on sequences (which are really just an abstraction over lists, vectors, maps, sets and regexes - but this means you get lists, vectors, maps, sets and regexes built in); Clojure has direct access to the JVM and therefore Java objects; Clojure has built in multiple dispatch, concurrency support (with transactional memory) and a bunch more. So, while Scheme is definitely a lot simpler, Clojure has a lot more built right in (I'm fairly sure Scheme provides libraries for a lot of, if not all, of these features though). Actually, since most of Clojures advanced features can be ignored, I think the only thing thats more complex is the way the syntax uses () and [] (though, IMHO it does make the code simpler once you understand it) and the list/vector/maps/sets - since instead of everything being a list, it can now be one of many different data structures (though in practice having them makes life easy). Clojure also benefits from a wealth of libraries, since you can use any Java class directly from Clojure. Disclosure: my experience with Scheme is limited to reading SICP, but I've been using Clojure a LOT over the past 4 or 5 months, so obviously Im biased :-)
- mahmud 17y agoClojure doesn't have a steep learning curve per se, it's just that what is "clojure" changes on a monthly basis. The language is not standardized and it's undergoing massive changes in short time. It's very promising, but I would wait for it. I recommended Scheme to you above, even though I use Common Lisp myself.