2 ms·
This post had inspired me to write CljOS[1], an Object System in Clojure mainly because I wanted to write a game engine and had freshly arrived from the Java wo
by divs1210 11y ago
This post had inspired me to write CljOS[1], an Object System in Clojure mainly because I wanted to write a game engine and had freshly arrived from the Java world.
It turned out to be extremely straightforward to map objects to closures. Took <100 lines of documented code!
obj.method(& args) => (obj :method & args)
I even have a basic 2d sprite-based game engine here[2] (on top of Swing!).
[1] https://github.com/divs1210/cljos https://github.com/divs1210/cljos
[2] https://github.com/divs1210/bakait https://github.com/divs1210/bakait