In 2008 I was reviewing options, we had to move away from Java. I choose Clojure rather than Scala, I found Scala quite confusing. Attempts to pour in FP notions in an OO language looked too me as an attempt to transplant a fifth limb to a four limb made body.
Since then I had a few discussions with Scala developers and the answers I got made it clear to me that choosing Clojure is a better choice. The common ground to these answers is 'do not use mutable collections', 'use values...','this is bad practice,...' I never got a satisfying answer to my counter questions 'then why offer all these features (mutation, objects, ...) easily accessible, if they are not to be used ? And how a newbie is suppose to know how to avoid all these sand traps ? If you want to use mutation in Clojure, it's doable but it also colors your code in a way that makes it obvious and exceptional somehow. Clojure sits at the frontier but with a bias toward FP while being pragmatic. We have a problem in this industry, features inflation. At some point it becomes useless to add not so natural features to a language. Scala is OO derived and adding FP features will not change it's DNA. Look at what Java 8 promises and it will end up in some form of chaos. Just thinking at what a mixed Java code base will look like in 10 years gives me nausea :) Yes there's a plan to make Cobol OO aware. It's not because it's doable that we should to do it. http://rotpier.over-blog.com/article-97207983.html Luc P. > I jumped on the FP bandwagon over a year ago and have been using Scala both > at work and for personal interest. Recently however I decided to take a > closer look at Clojure and see if it is something i actually like. I have > to admit at first the syntax form was awkward, but im starting to really > see the simplicity behind it. > > I have heard many people claim that Clojure sets you up and supports you > for FP more so then Scala does. However they never provide any examples of > something Clojure does that is more supporting of FP then the way idiomatic > Scala does it. > > Here are some things that I have heard people say when comparing Clojure vs > Scala in reference to FP > Clojure has immutable persistance data structures..... but so does Scala > Scala also tries to get you to use its immutable collections, like Vectors, > and are also persistent data structures. However they are not as uniform as > Clojures Seq i agree with that. > > Also Scala recommends using vals and not vars, which gives you immutable > references points > > I am certainly learning towards dropping Scala for a bit and giving Clojure > a real shot. The reason i even picked up Scala was because i wanted to > learn more about FP, and if there is a better tool for both doing and > learning FP then i want it. > > So tell me, if you have used both Scala and Clojure, do you have some real > examples of some things where Clojure really does support you better when > doing FP, where Scala really leads you no way, or worse the imperative way? > > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Luc Prefontaine<lprefonta...@softaddicts.ca> sent by ibisMail! -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.