Fork me on GitHub
#clojure-europe
<
2020-08-17
>
synthomat05:08:21

morning!

👋 1
2
djm08:08:57

I enjoyed your interview on the defn podcast

😎 1
raymcdermott09:08:18

Good Wood Woof morning

otfrom15:08:28

oh experts on clojure or those with opinions... 😉

otfrom15:08:09

do you prefer: (remove empty) or (filter seq) ?

borkdude15:08:20

remove + empty will run (filter (complement empty) ...) which is in turn (filter #(not (not (seq %))) ...)

otfrom15:08:09

so, one is a shallower call stack

borkdude15:08:31

The double negation is probably very fast, so I doubt if you would see any significant difference in performance

otfrom16:08:51

yeah, I wasn't thinking perf would be much of a difference

otfrom16:08:13

so.... which one to use?

Ben Hammond16:08:28

(remove empty) is easier to comprehend

Ben Hammond17:08:01

and therefore kinder to Those-Who-Come-After-You

Ben Hammond17:08:05

and you should always try to be kind to your maintainers cos they have a hell of a time

otfrom17:08:53

Is seq on a cool coll not idiomatic enough?

otfrom17:08:13

I agree that remove empty reads better

mpenet18:08:22

I guess you mean empty?

otfrom21:08:47

Yes empty?