Good Morning!
👋
Morning!
morning
mawning
Morning!
moin moin
Good morning
Morning
@agile_geek This is one of those rare “I knew that, I knew that….” << No one likes a smart arse, remember that 🙂 ❤️
@jasonbell it's ok..... I've known no one likes me since I was 8. I'm used to it! 🦹
So now we need to know what happened when you were 8 🙂
LOL I love ya dude, you know that.
Kids realised it was fun to tease the boy who was quiet and had red hair!
☕
morning
morning
morning
Time to remind myself how to do multimethods, it’s been a while.
@l0st3d @raymcdermott thanks for the tips!
the dispatch is bliss
I’m ambivalent about them. I don’t like having to restart the REPL to pick up a new multi method!
Why do you need to restart the repl to pick up a new multimethod?
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
Sounds carthatic.
I've not had to write any PHP since 2007 ... my sympathies
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 :-)
Yeah I remember that @agile_geek - It’d true @l0st3d you do need to restart the REPL for changes to take effect.
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??