3 ms·
But in other languages it's clear what the code is doing. If you have a chain of map, filters and other operations, they are all named and easy to grok. In a py
by matsemann 3y ago
But in other languages it's clear what the code is doing. If you have a chain of map, filters and other operations, they are all named and easy to grok. In a python list comprehension a lot of things will be going on, without named parts. So then you need to name stuff to keep track. So you got foo, then foo_filtered, then foo_sorted, then foo_grouped. And that doesn't really convey anything more than in a language where you would do foo.filter().sort().group().