News for hackers. Stuff that matters.
Re:SQL databases come up with algorithms you’d never have dr... by dragonwriter on Saturday April 06, 2019 @10:40AM (#19590957)
> I wouldn't compare a comprehension to a loop because a loop doesn't typically have an output.

Loops in lots of languages have outputs. It's kind of necessary in expression-oriented languages.

But it's true that comprehensions are different than Python loops in that way (and are, in fact, equivalent to maps with joins and filters, like an SQL SELECT statement.)

Re:SQL databases come up with algorithms you’d never have dr... by afandian on Saturday April 06, 2019 @11:39AM (#19591254)
Per my other reply [0] maybe my definition of loop, based on C, was too narrow.

I draw a distinction with map, recursion, lazy sequences etc

[0] https://news.ycombinator.com/item?id=19591233