News for hackers. Stuff that matters.
Re:Reducers, transducers and core.async in Clojure by scott_s on Wednesday June 07, 2017 @04:19PM (#14509556)
I do find it interesting, but it doesn't change what's easier for me to reason about.

I suspect that it will be easier for core Python developers rather that general Python programmers because they will be more intimately familiar with the conversion rules. I would be more comfortable with such a construct in C or C++, because I am more confident in those conversion rules. But, even though Python's are quite similar, I had to check myself before making my comment, because I knew they were similar, but I was not sure what they were. The situation in the stackoverflow comment is also not quite the same: asking a question about the relationship of numbers (is x modded by 2 equal to zero) is a special case of using integers in a boolean context. Saying it's Pythonic to use an integer in a boolean context does not necessarily mean it's best to always do so.

There are no comments on this comment yet.