Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> (ns hello-world.core (:require [goog.dom :as dom] [goog.dom.classes :as classes] [goog.events :as events]) (:import [goog Timer]))

(let [element (dom/createDom "div" "some-class" "Hello, World!")] (classes/enable element "another-class" true) (-> (dom/getDocument) .-body (dom/appendChild element)) (doto (Timer. 1000) (events/listen "tick" #(.warn js/console "still here!")) (.start)))

How is that even workable? And that's just an HTML fancy hello world.



I'm not sure I understand. What's not workable about it?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: