Clojurians
#cljs-dev
<
2018-06-08
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

dnolen08:06:56

@symfrog hrm I don’t follow, we elide it from all final output

dnolen08:06:59

oh I just I missed the foreign concat

dnolen08:06:53

@symfrog should be fixed

favila20:06:32

I am hitting an issue where s/def in a cljc dies silently if it refers to a symbol in the same ns

favila20:06:37

does this ring a bell with anyone?

favila20:06:04

(ns com.foo 
  (:require [clojure.spec.alpha :as s]))

(defn mypred [x] true)

(println "before")
(s/def ::p mypred)
(println "after")

favila20:06:14

cljs.user=> (require 'com.foo)
before

cljs.user=> 

favila20:06:43

but if I change it to a fn literal:

favila20:06:47

(s/def ::p #(mypred %))

favila20:06:02

it works:

cljs.user=> (require 'com.foo :reload)
before
after

favila20:06:08

(that's a rhino repl btw)