To me, they are in the inverse relationship. Terseness ~ 1 / expressiveness. Maybe I am not getting something. But surely if list comprehension took 5 lines to write, it wouldn’t be justifiable? So, even if implicit, brevity and its relation to complexity is always a factor.
On 18 Jul 2023, at 17:57, Chris Angelico <rosuav@gmail.com> wrote:
On Wed, 19 Jul 2023 at 00:55, Dom Grigonis <dom.grigonis@gmail.com> wrote:
Here I am a bit confused, how is this the case in the language containing list comprehensions?
Do you understand the difference between expressiveness and terseness? You still seem to be focused on the completely wrong thing here. List comprehensions are not about saving lines, they are about expressing the concept of "build a list from a list".
ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-leave@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/HES5J5... Code of Conduct: http://python.org/psf/codeofconduct/