Fork me on GitHub
#clojure-uk
<
2020-02-06
>
thomas08:02:22

mogge 😼

Samuel08:02:25

Morning all

jasonbell09:02:42

Good morning friends

guy09:02:32

morning!

Edward Hughes10:02:53

morning everyone

thomas12:02:10

and just to add some clj for the day. Today I learned about clojure.string/escape

thomas12:02:52

just that tiny bit nicer than clojure.string/replace

guy12:02:59

Ohh interesting

Wes Hall13:02:06

Based on previous conversations we really do need this, "clojure function of the day" thing πŸ™‚. escape is something I have simultaneously used before and had forgotten about πŸ™‚

peterwestmacott16:02:26

Random Clojure Function Of The Day:

clojure.core/future-done?
([f])
Returns true if future f is done

Ben Hammond16:02:29

Obviously I'm a big fan of > Returns true if future is cancelled

Ben Hammond16:02:06

(presumably due to lack of interest)

mccraigmccraig16:02:16

just use a manifold.deferred/future already and chain a function on completion - it's composable and non-blocking

dharrigan13:02:20

For me, it's just now having a very good use-case of using future

dharrigan13:02:26

it works and is so easy πŸ™‚

Wes Hall13:02:15

(future (lottery-numbers))

otfrom13:02:42

annoyingly when you deref this it blocks until the numbers have been drawn

πŸ˜‚ 4
otfrom13:02:42
replied to a thread:`(future (lottery-numbers))`

annoyingly when you deref this it blocks until the numbers have been drawn

πŸ˜‚ 4
dominicm13:02:57

Future can overwhelm your server if you're not careful

Ben Hammond14:02:38

only when its not > Future PROOF eyethankyou

28
dharrigan14:02:10

πŸ§₯

πŸ˜† 4
Ben Hammond14:02:20

that's not my coat it's buttons are too brassy