Re:SQL databases come up with algorithms you’d never have dr...
by afandian on Saturday April 06, 2019 @12:31PM
(#19591548)
OK agreed there's a construct called loop that returns a single value. My original point was that list comprehensions are closer to sql projections than loops.
[ Parent
| on HN ]
Re:SQL databases come up with algorithms you’d never have dr...
by taeric on Saturday April 06, 2019 @01:06PM
(#19591730)
Apologies, I meant my point more as amusement than winning an argument.
I am just now reading Practical Common Lisp, and amusingly one of the first things they do is build a simple query language. Didn't even use loop. So, to your point, the imperative commands of looping can be far removed from what people today call comprehensions. That said, I don't think it is inherent. Just a quirk of history.
Re:SQL databases come up with algorithms you’d never have dr...
by afandian on Saturday April 06, 2019 @05:46PM
(#19593207)
No point scoring inferred. In fact, it's a great illustration of different language and technology communities taking words and ideas and implementing them differently, crucially, with different degrees of specificity.