Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scala - Java = ? (Or Clojure - Java = ?)

  1. Is it possible for a developer to use Scala without knowing Java?
  2. Is it possible for a developer to use Clojure without knowing Java?

Note: For example I am a C# developer and I use .NET without knowing any VB (Of-course WF 4.0 uses VB for statements, so I refuse any projects involving WF 4.0 :) ).

Summary I: Thanks to all for your answers. Now I can tell one can use these languages without knowing Java (The Language). Now I've got another question: How can one start with Java (JVM) ecosystem? What are beginner, intermediate and advanced knowledge-bases (bags!)? To be honest Java ecosystem was always a bit confusing to me, so it would be very helpful to provide some "reference references" and "defacto tutorials" for learning (curve!) JVM. (OK! I will post it as another question!)

like image 766
Kaveh Shahbazian Avatar asked Jun 07 '10 20:06

Kaveh Shahbazian


People also ask

Which is better Scala or Java?

The study concluded that Scala was faster than Java and Go when average developers write their code without thinking about optimization too much. The study used the default, idiomatic data structures in each language.

Is Clojure better than Java?

Clojure enables you to write programs that are better and more flexible, and above all makes you much more productive than using Java. By now the language has proven itself in the industry.

What is Clojure in Scala?

Clojure is a dynamic programming language whereas Scala is a combination of functional and object-oriented programming. Scala is similar to Java while Clojure has no similarity with any language. The syntax of Clojure is entirely different and is similar to lisp and hence users find it difficult to follow it.


1 Answers

Scala, and Clojure even more so, are totally different languages from Java. The only thing they have in common is that they run on the Java virtual machine. You do not need to know the Java programming language to program in Scala or Clojure. It would be useful, however, to know something about the Java ecosystem (the Java virtual machine and runtime environment).

like image 118
Jesper Avatar answered Oct 04 '22 08:10

Jesper