I explore the Clojure language
To program in Clojure i use Emacs with Cider, Lein and Ubuntu 20.04 LTS Operating System
Let's create a new project with the command: lein new app hello-world
Open the file hello-world/src/hello_world/core.clj with Emacs
The file contains the classic Hello World program
(ns hello-world.core
(:gen-class))
(defn -main
"I don't do a whole lot ... yet."
[& args]
(println "Hello, World!"))
To run the program: lein run
This is the result:
Hello, World!
Top comments (0)