lantiga / ki

lisp + mori, sweet.js
ki-lang.org
MIT License
478 stars 28 forks source link

Smaller immutability utility #8

Open jasonkuhrt opened 10 years ago

jasonkuhrt commented 10 years ago

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

lantiga commented 10 years ago

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.