Hi!
Yeah, polymorphism is a good workaround.
Thank you!
On Nov 25, 5:41 pm, "S. Alexander Jacobson" <
a...@alexjacobson.com>
wrote:
> I am strongly biased towards Haskell.
> That being said, Java has anonymous classes which allow you to pass functions as parameters....
http://docstore.mik.ua/orelly/java-ent/jnut/ch03_12.htm
> -Alex-
> tivrfoa wrote:Thanks very much for your reply Curt!If the question is what to learn first, rather than in what to start implementing a major system, I'd chose Scala over Erlang.And if my question is: what to start implementing a major system? Which one would you choose? =) I'm Java programmer, so I would like to learn a language that do things that Java can't (or can, but in a more difficult way). Two things that I miss in Java is that a function is not a type, I can't pass a function as parameter nor return a function like I do in Scheme, and the other one is closure, I can't pass a block of code to a function like I do in Ruby. Just one thing of the above would be good, because one replaces the need of the other, right? I think the future (already the present in some places) is programming for multi-cores. Erlang is a concurrent programming language, so maybe is the better language for this purpose. There are some nice projects using Erlanghttp://
en.wikipedia.org/wiki/Erlang_%28programming_language%29#Projects_using_Erlangand after watch this presentationhttp://
www.infoq.com/presentations/Systems-that-Never-Stop-Joe-ArmstrongI become a little excited about Erlang. I will take a look in Haskell. ;-) On Nov 21, 10:39 pm, Curt Sampson<
c...@cynic.net>wrote:On 2009-11-21 15:17 -0800 (Sat), tivrfoa wrote:I don't know if I learn Erlang or Scala first. Both seems to have a great future (and already have a great present =).If the question is what to learn first, rather than in what to start implementing a major system, I'd chose Scala over Erlang. Erlang's big feature over Scala (besides my impression that it has a slightly more functional "feel") is its concurrent process and messaging system, which is really a run-time thing rather than a language thing, and which is a concept that's already reasonably familiar (in rather less sophisticated form) to many programmers already. Scala, on the other hand, offers a fairly sophisticated type system including algebraic types, which is a concept rarely seen outside of the FP world (ML and its relatives such as Haskell). That's very mind-expanding, and well worth learning about. You might also consider learning Haskell (or one of its relatives such as Clean), which I consider to have more new concepts than any other language out there except for perhaps Oz. cjs -- Curt Sampson <
c...@starling-software.com>
+81 90 7737 2974 Functional programming in all senses of the word:
http://www.starling-software.com-- You received this message because you are subscribed to the Google Groups "CUFP" group. To post to this group, send email
toc...@googlegroups.com. To unsubscribe from this group, send email
tocufp+un...@googlegroups.com. For more options, visit this group athttp://
groups.google.com/group/cufp?hl=en.