The real challenge is to reconceptualize your problem domain into a
non-destructive framework.
In other words, you need to transform your way of thinking from:
move function (or method) takes a Shape and destructively updates the
shape's x and y, returning void
to
move function takes a Shape and re
I was wondering what's a good way to use OO concepts in clojure. Just
using multimethods and maps? Or maybe protocols?
Let's say I write a program that deals with many graphical elements
e.g. a game or a vector graphic editor.
I could represent each graphic/sprite/shape etc. as a map and define
mul