2 ms·
Yes though Python has list comprehensions too :) I should have picked a different example -- the idea I was trying to get across was that mutability within a l
by chubot 3y ago
Yes though Python has list comprehensions too :)
I should have picked a different example -- the idea I was trying to get across was that mutability within a loop is useful.
Here’s a similar question I asked with Python vs. OCaml and Lisp. Short-circuiting loops seems to cause the code to become fairly ugly in functional languages
https://old.reddit.com/r/ProgrammingLanguages/comments/puao1v/im_using_python_now_2013/he2syf8/ https://old.reddit.com/r/ProgrammingLanguages/comments/puao1...