Thanks Gary!
My intention is to have an alias, so making a new function, seems to be the
best option:
(defn dialog
"Shows a dialog and asks for confirmation."
[message]
(javax.swing.JOptionPane/showMessageDialog nil message))
(dialog "Hello Clojure!")
Is there any difference or drawback
Hello everyone! I'm reading the clojure introduction at clojure-doc, I'm
currently on "namespaces", and after reading about:
(require '[clojure.string :as str])
I tried to do:
user=> (require '[javax.swing.JOptionPane/showMessageDialog :as Diag])
so I could do:
user=> (Diag nil "Hello Clojure