This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-23
Channels
- # beginners (81)
- # boot (1)
- # cider (1)
- # cljs-dev (15)
- # cljsrn (1)
- # clojure (27)
- # clojure-europe (9)
- # clojure-hamburg (2)
- # clojure-italy (6)
- # clojure-nl (6)
- # clojure-spec (10)
- # clojure-uk (33)
- # clojurescript (9)
- # clojurex (5)
- # cursive (14)
- # datomic (21)
- # devcards (2)
- # duct (72)
- # figwheel (1)
- # fulcro (6)
- # kaocha (3)
- # leiningen (5)
- # nrepl (10)
- # off-topic (65)
- # parinfer (12)
- # re-frame (68)
- # reagent (1)
- # reitit (14)
- # shadow-cljs (65)
- # spacemacs (6)
- # sql (4)
- # tools-deps (2)
- # yada (1)
Can someone confirm for me which is most idiomatic goog.DEBUG
or goog/DEBUG
in this context...
(when ^boolean goog.DEBUG (println "Hello world!"))
(when ^boolean goog/DEBUG (println "Hello world!"))
@olivergeorge I'd say goog/DEBUG
or js/goog.DEBUG
but it really doesn't matter that much. since its a JS variable the compiler doesn't do anything special with it anyways
@olivergeorge Also, if you want to make your code look correct by first requiring the goog
namespace, this wasn't fixed for :advanced
until 1.10.312 with CLJS-1677.
I'm having trouble with :advanced
after renaming my my namespaces so they start with console.
I'm getting TypeError: Cannot read property 'bind' of undefined
from the resultant js:
;var sT = lh(new l(null,5,[DN, console.log.bind(console), Nt, console.warn.bind(console), jJ, console.error.bind(console), Hp, n(console.group) ? console.group.bind(console) : console.log.bind(console), tL, n(console.groupEnd) ? console.groupEnd.bind(console) : function() {
return ke
}
Hello all, I´m trying to use PouchDB with re-natal (react-native) app. But the PouchDB is an esModule, so I did (def PouchDB (.-default (js/require "pouchdb-react-native")))
. But why after creating (PouchDB. "database")
the function names came with '_' before when I log it into debug console? Am I missing something?