4 ms·
Maybe I don't understand what you mean by "incompatible dialect". These are simple classes inheriting from list/dict. Basically, it simply add a couple methods
by phzbOx 15y ago
Maybe I don't understand what you mean by "incompatible dialect". These are simple classes inheriting from list/dict. Basically, it simply add a couple methods to these objects. I.e. You can still use all the idioms/patterns; these are list/dict. I'm not creating a new paradigm, or writing a new language by tweaking the syntax. There's really nothing magic going down here. I.e. you can do
return List(..).update(..).update(..)
Instead of;
l = List(...)
l.update(...)
l.update(...)
return l
You can still use lisp comprehension, itertools, etc. In fact, I could pass a moka.List to your existing code and you wouldn't even notice it. (And you do, it's a mistake that I'd fix).
I do agree that I might have been overkill with some useless methods and I'm thinking about removing them.
(I.e. such as 'join' as it's really not needed)