Last active
October 25, 2015 16:23
-
-
Save sch/07d4e1478974a4df673c to your computer and use it in GitHub Desktop.
Clojure namespace wishlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns om-tutorial.core | |
(:require [goog.dom :as gdom] | |
[om.next :as om :refer-macros [defui]] | |
[om.dom :as dom] | |
[cljs.pprint])) | |
;; simple maps do it better: | |
(ns om-tutorial.core | |
(:require [goog.dom {:alias gdom}] | |
[om.next {:alias om :refer-macros [defui]}] | |
[om.dom {:alias dom}] | |
[cljs.pprint])) | |
;; or maybe even: | |
(ns om-tutorial.core | |
{:dependencies {{goog.dom {:alias gdom}} | |
{om.next {:alias om :refer-macros [defui]}} | |
{om.dom {:alias dom}} | |
cljs.pprint nil}}) | |
;; either way, `ns` feels like this weird imperative spell you conjure in order | |
;; to setup the world for your program. should be much more declarative |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment