This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-12
Channels
- # aleph (10)
- # beginners (62)
- # boot (12)
- # cider (97)
- # cljs-dev (171)
- # clojars (1)
- # clojure (224)
- # clojure-italy (4)
- # clojure-nl (2)
- # clojure-russia (1)
- # clojure-spec (41)
- # clojure-uk (68)
- # clojured (7)
- # clojurescript (115)
- # community-development (4)
- # cursive (2)
- # data-science (1)
- # datomic (18)
- # duct (40)
- # emacs (1)
- # events (1)
- # fulcro (148)
- # funcool (2)
- # graphql (2)
- # immutant (3)
- # jobs (3)
- # keechma (1)
- # luminus (2)
- # numerical-computing (1)
- # off-topic (19)
- # om (6)
- # parinfer (10)
- # pedestal (15)
- # precept (86)
- # reagent (12)
- # ring (3)
- # ring-swagger (2)
- # shadow-cljs (42)
- # spacemacs (19)
- # specter (17)
- # sql (11)
- # tools-deps (78)
- # unrepl (62)
- # vim (28)
Colin, I notice that in CLJC files, the “reformat” action in Cursive makes a mess of conditional splicing….e.g., this is what I get:
(ns fulcro.client.dom
(:refer-clojure :exclude [map meta time mask select])
#?(:cljs (:require-macros [fulcro.client.dom :as dom]))
(:require
[clojure.string :as str]
[fulcro.client.impl.protocols :as p]
[fulcro.util :as util]
[clojure.spec.alpha :as s]
#?@(:clj (
[clojure.core.reducers :as r]
[clojure.future :refer :all]
[fulcro.checksums :as chk])
:cljs ([cljsjs.react]
[cljsjs.react.dom]
[goog.object :as gobj])))
even if I try to manually wrap the stuff up, it still forces it down. This makes using parinfer, for example, corrupt the code. I would expect something like:
(ns fulcro.client.dom
(:refer-clojure :exclude [map meta time mask select])
#?(:cljs (:require-macros [fulcro.client.dom :as dom]))
(:require
[clojure.string :as str]
[fulcro.client.impl.protocols :as p]
[fulcro.util :as util]
[clojure.spec.alpha :as s]
#?@(:clj ([clojure.core.reducers :as r]
[clojure.future :refer :all]
[fulcro.checksums :as chk])
:cljs ([cljsjs.react]
[cljsjs.react.dom]
[goog.object :as gobj])))