specter

Latest version: 1.1.3
jsa-aerial 2018-07-10T00:12:12.000083Z

Adventures in CLJS now... I require [com.rpl.specter :as sp] and require-macros [com.rpl.specter.macros :refer [select-one transform setval]]. When trying to compile, the following is issued: 'Invalid :refer, macro com.rpl.specter.macros/setval does not exist'.

jsa-aerial 2018-07-10T00:12:28.000114Z

I am using figwheel

jsa-aerial 2018-07-10T00:12:57.000115Z

Anyone using Specter in CLJS land have any ideas?

jsa-aerial 2018-07-10T00:15:24.000066Z

OK, it looking further in the doc, I see the CLJS incantation. Let me try that and see if it makes this go away.

jsa-aerial 2018-07-10T00:18:17.000038Z

Yes, that fixes it. Sorry for the noise.

souenzzo 2018-07-10T11:54:16.000276Z

Require from com.rpl.specter. this namespace .macros is not used anymore

Bravi 2018-07-10T12:43:35.000364Z

@jsa-aerial I always use sp/select-one, sp/ALL and etc

Bravi 2018-07-10T12:43:39.000348Z

in cljs

jsa-aerial 2018-07-10T14:15:50.000361Z

@bravilogy That's what I do in CLJ - always namspace qualified for everything. But I thought you needed to explicitly name the macros in a require-macros or :refer-macros them for them to be available in CLJS land. Since macros are expanded and such in the JVM (well unless you are using self hosted) I admit I don't really understand the implementation details of how they are made available in CLJS.

Bravi 2018-07-10T14:24:44.000561Z

yeah I was just implying the fact that specter works differently in cljs, hence I don’t investigate any further than that 😄 haha. i just namespace them all

jsa-aerial 2018-07-10T14:52:46.000023Z

Well, other than pulling in the macro stuff (which is anything in cljs land) all the specter code I am using works exactly as in clojure. Very cool!

jsa-aerial 2018-07-10T14:53:06.000092Z

No 'porting' at all - just use!