lantiga / ki

lisp + mori, sweet.js

Home Page:ki-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smaller immutability utility

jasonkuhrt opened this issue · comments

I haven't looked into how exactly you're relying on mori but just a thought, if you're only after the immutability features then it might be worth considering ancient-oak?

https://github.com/brainshave/ancient-oak

Cheers

Right now mori functions are made namespace-globals by default in all namespaces, so you have access to constructors and the mori API.
In fact though, the only place where mori functions are called directly from the generated code is literals for vectors and hash-maps ([] {}) and :keywords, so in principle it is conceivable to decouple ki from mori and open up the possibility of working with other libraries. The idea is certainly worth exploring.
BTW, ancient-oak is very nice work, thanks for pointing it out. If you have ideas on the possible integration I'll be happy to hear them. I'll probably give it a shot as well.