|
|
|
|
|
by pgwhalen
1202 days ago
|
|
Usually I balk at the idea of of someone describing a language feature as “first class” because it seems to wishy washy. But in this thread you’ve shown me that maybe the best definition is through “proof by negation,” by patiently responding to arguments and demonstrating why a certain usage and the ensuing restriction around it means it is not first class. Bravo! |
|
https://en.wikipedia.org/wiki/First-class_citizen
If you want to see what queries as first-class values looks like, LINQ in .NET is pretty close. I can actually write a series of queries that build on and compose with each other, like this:
This query is nonsense, but it just shows you what composition really looks like when queries are first-class values. I wish raw SQL were like this!