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 <[email protected]> wrote: > > On Wed, 19 Jul 2023 at 00:55, Dom Grigonis <[email protected]> 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 -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/[email protected]/message/HES5J5CLNNBHXAKIMIQA5WV43GBI6Q4W/ > Code of Conduct: http://python.org/psf/codeofconduct/ _______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/SVT7HQ4BHLUTBC4EMY52OIDL5PXYO7ZH/ Code of Conduct: http://python.org/psf/codeofconduct/
