LogoLogo
  • Welcome
  • Preface
  • Languages
    • Assembly Language
      • Introduction
      • History
      • What it solves
      • Advantages
      • Disadvantages
      • Conclusion
    • C++
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • ABC
      • Introduction
      • History
      • What it solves
      • Advantages
      • Disadvantages
      • An Example
      • Conclusion
    • Python
      • Introduction
      • History
      • What it solves
      • Advantages
      • Disadvantages
      • Few more points
      • Conclusion
    • Erlang
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • JavaScript
      • Introduction
      • History
      • Purpose & Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • C#
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • Go
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • Haskell
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • Brainfuck
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
      • Some interesting facts
    • Malbolge
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • Perl
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • C
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Conclusion
    • Lua
      • Introduction
      • History
      • Advantages
      • Disadvantages
      • Some interesting facts
      • Conclusion
    • JVM
      • Introduction
      • Java
        • Introduction
        • History
        • Advantages
        • Disadvantages
        • Some interesting facts
        • Conclusion
      • Clojure
        • Introduction
        • History
        • Advantages
        • Disadvantages
        • Some interesting facts
        • Conclusion
  • End
    • Credits
Powered by GitBook
On this page
  • Clojure code compared to other languages
  • Clojure
  • Java
  • Ruby
  1. Languages
  2. JVM
  3. Clojure

Some interesting facts

Clojure code compared to other languages

Example of Hello World app in some languages

Clojure

(ns clojure.examples.hello
  (:gen-class))
(defn hello-world []
  (println "Hello World"))
(hello-world)

Java

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}

Ruby

puts "Hello world!"
PreviousDisadvantagesNextConclusion

Last updated 5 years ago