A few questions about "hello world" in clojure

I have a couple of questions about Hello World in Clojure:

(println "Hello, world!")
  • Since 'println' is used, does this mean that some Java libraries are included by default in the default namespace, as in Grails?
  • Why do you need parentheses around the statement? Judging by other examples (below), brackets are common:

    (let [i (atom 0)] (defn generate-unique-id "Returns a separate digital identifier for each call." [] (swap! i inc)))

  • Any evidence so far that Clojure is likely to be caught?
+3
source share
1 answer
  • println - Clojure, , Java ( ). Java (java.io java.lang, ).

  • Lisp. , Java:

    addTwoNumbers(4, 5);
    

    Clojure ( Lisp):

    (addTwoNumbers 4 5)
    
  • Clojure . Google

+8

Source: https://habr.com/ru/post/1716542/


All Articles