This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-18
Channels
- # beginners (15)
- # boot (23)
- # cider (8)
- # clara (29)
- # cljs-dev (86)
- # cljsrn (36)
- # clojars (9)
- # clojure (211)
- # clojure-dusseldorf (5)
- # clojure-italy (21)
- # clojure-sg (2)
- # clojure-spec (4)
- # clojure-uk (12)
- # clojurescript (204)
- # cursive (5)
- # data-science (12)
- # datomic (15)
- # dirac (99)
- # emacs (1)
- # events (2)
- # figwheel (1)
- # fulcro (9)
- # graphql (27)
- # hoplon (50)
- # instaparse (9)
- # juxt (61)
- # keechma (6)
- # leiningen (1)
- # luminus (4)
- # lumo (24)
- # off-topic (24)
- # om (16)
- # onyx (17)
- # parinfer (35)
- # pedestal (3)
- # planck (12)
- # protorepl (8)
- # re-frame (15)
- # reagent (22)
- # ring (1)
- # rum (1)
- # spacemacs (3)
- # uncomplicate (4)
- # vim (5)
- # yada (1)
is there a better way to do this? (when-let [title (#(if-not (empty? %) %) (om/get-state this :title))] ,,,)
- it's like i want to treat empty strings as logically false for when-let
, essentially
@cjhowe why not just separate the let
and when
?
(let [title (om/get-state this :title)]
(when-not (empty? title)
...))
(if-not (empty? x) x)
is (not-empty x)
so (when-let [title (not-empty (om/get-state this :title))] ...)
How to create similar app like replete iOS app? Ok, I can create now reagent app. How to compile into app the clojure repl?
Like http://clojurescript.io to app?
@lepistane That's a tough lesson! Some google search could have prevented that: https://medium.com/@sellarafaeli/git-reset-not-so-hard-after-all-e3de88bb66a5 (Or just read stackoverflow posts... there's enough warning of how it is truly dangerous)