clojure-uk

A place for people in the UK, near the UK, visiting the UK, planning to visit the UK or just vaguely interested to randomly chat about things (often vi and emacs, occasionally clojure). More general the #ldnclj
djm 2021-03-26T06:37:40.070600Z

👋

mccraigmccraig 2021-03-26T07:09:16.070800Z

mawning

alexlynham 2021-03-26T07:36:48.070900Z

morning

dharrigan 2021-03-26T08:35:37.071200Z

Morning!

thomas 2021-03-26T09:06:09.071400Z

moin moin

danm 2021-03-26T10:00:56.071600Z

Morning

danm 2021-03-26T10:03:13.073900Z

How would I use spec to specify an optional positional arg, but define the contents of that arg if it exists? Like, my current spec is:

(s/fdef set-http-probe :args (s/cat :deployment ::kube-deployment/deployment
                                    :kind #{:startup :liveness :readiness :default}
                                    :args (s/keys :opt-un [::kube/probe-kind ::kube/http-port ::kube/path ::kube/probe-args])))
but I actually want to not have to specify the args parameter at all. At the moment if there are no additional optional args to provide I have to call the function with an empty map at that location. I tried wrapping s/keys in s/nilable, but in that case I still had to provide an explicit nil final arg in my call

Conor 2021-03-30T08:19:20.077800Z

I like to use it with ch/ips

danm 2021-03-30T08:35:01.078Z

Why is there no :groan: emoji?

Conor 2021-03-30T13:57:47.082Z

You're a dad now Dan, get in on the joke action

danm 2021-03-26T10:11:38.074700Z

Doing 2x s/cat (1 missing :args entirely) that are combined with a basic or doesn't seem to quite work either

2021-03-26T10:18:00.075Z

Morn'