7 ms·
so you're admitting you're writing an incompatible dialect of python in python? that was my point. if you think it is worthwhile, well - enjoy :-) if you want
by tef____ 15y ago
so you're admitting you're writing an incompatible dialect of python in python?
that was my point. if you think it is worthwhile, well - enjoy :-)
if you want to write in something with a uniform syntax, use scheme or clojure. python things look different for a reason.
- phzbOx 15y agoMaybe 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)