
On Mon, May 3, 2021 at 9:04 AM Paul Moore <p.f.moore@gmail.com> wrote:
On Mon, 3 May 2021 at 04:00, David Álvarez Lombardi
This is the mindset that I had. I understand there are other ways to do what I am asking. (I provided one in my initial post.) I am saying it relies on what I believe to be a notoriously unintuitive method (str.join) and an even more unintuitive way of calling it ("".join).
I think this is something of an exaggeration. It's "notoriously difficult" (;-)) for an expert to appreciate what looks difficult to a newcomer, but I'd argue that while ''.join() is non-obvious at first, it's something you learn once and then remember.
Yeah, I don't get this point at all. The `"delim".join(collection)` idiom may not be the first pattern someone thinks of the first time. But you learn it once, maybe repeat it a second time, then it's easy. In contrast, each time I see the "string comprehension" again, I realize more and more stumbling points that I would continue to have for years. Plus the fact that it just LOOKS UGLY is a drawback.
list(expression for x in items if cond) set(expression for x in items if cond) dict((key, value) for x in items if cond)
I kinda like this. I'm tempted to start writing all of these this way. And if I wanted, I could add `concat(...)` to that parallel structure easily enough. I hope the above was of use. Overall, I'm a strong -1 on this
proposal, I'm afraid.
I'm more like -100. -- The dead increasingly dominate and strangle both the living and the not-yet born. Vampiric capital and undead corporate persons abuse the lives and control the thoughts of homo faber. Ideas, once born, become abortifacients against new conceptions.