Fork me on GitHub
#clojure-europe
<
2021-04-07
>
dharrigan05:04:09

Good Morning!

jasonbell07:04:17

@agile_geek This is one of those rare “I knew that, I knew that….” &lt;&lt; No one likes a smart arse, remember that 🙂 ❤️

agile_geek07:04:29

@jasonbell it's ok..... I've known no one likes me since I was 8. I'm used to it! 🦹

dharrigan07:04:46

So now we need to know what happened when you were 8 🙂

agile_geek08:04:20

Kids realised it was fun to tease the boy who was quiet and had red hair!

jasonbell07:04:51

LOL I love ya dude, you know that.

jasonbell10:04:45

Time to remind myself how to do multimethods, it’s been a while.

agile_geek15:04:00

I’m ambivalent about them. I don’t like having to restart the REPL to pick up a new multi method!

Ed16:04:33

Why do you need to restart the repl to pick up a new multimethod?

jasonbell19:04:54

Yeah I remember that @agile_geek - It’d true @U0P0TMEFJ you do need to restart the REPL for changes to take effect.

Ed19:04:29

do you mean to change the dispatch function for an existing multimethod? If so, then you can either use a named var as the dispatch function (in which case you can change that var with defn) or def the multimethod to something other than the multimethod (like nil) and then reload the defmulti and defmethods to change the dispatch function ... that's the only sticky point with multimethods that I came across - maybe I've not done enough of them??

agile_geek09:04:11

@l0st3d @U04V5V0V4 thanks for the tips!

3
genRaiy14:04:14

the dispatch is bliss

kardan16:04:23

When you been doing Clojure since 2016 and then have to work in Php which I don’t know https://media.giphy.com/media/Ta3v3I4GI1gH7Rqek6/giphy.gif

😂 6
Ed16:04:29

I've not had to write any PHP since 2007 ... my sympathies

kardan17:04:39

I’m making it sound worse than it is. It’s actually a small project which we inherited and plan to rewrite in Clojure. Just feeling like a total noob :-)

simongray07:04:33

Sounds carthatic.