Earlier quoted context omitted.
Thanks for all the good points. To be honest, I'm not sure what you're trying to say. I've been coding in python for years and Moka was built from my annoyance using functional paradigms with the stdlib. As you clearly showed, Python doesn't have an uniform syntax to deal with this paradigm. I.e. there are lots of different constructs and, as you said, common idioms or patterns . Have you already argued with a Java p…
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.
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)