Fork me on GitHub
#clojure
<
2018-07-28
>
vemv11:07:04

What's a good place to store global initialization code for tests? (I use lein test) i.e. run certain code first, and then the tests. I shouldn't require the initialization code from every test ns - seems error-prone

vemv11:07:18

maybe profiles/test/user.clj?

emccue14:07:10

how can i make a record and its constructors private to a ns?

emccue15:07:00

for context, I am trying to translate this elm code

emccue15:07:16

and I want to provide a "map"

emccue15:07:45

using clojure.algo.generic.functor/fmap

emccue15:07:13

and that is a multimethod that dispatched on type

gfredericks15:07:26

looks like in java 10 you can no longer have a namespace named .

gfredericks15:07:33

I'm going to have to switch to -

emccue20:07:48

Related to that above question, how can i implement collection interfaces like "Counted" without a compiler error?

emccue21:07:21

my guess is that since defrecord makes a map-ish thing, it already implements counted

emccue21:07:01

I am on 1.9.0 if that makes a difference