|
|
|
|
|
by naasking
817 days ago
|
|
> Where I see it as the same thing: the SELECT columns, like the variable assignment, are the interaction point with the following lines of code. Indeed, which is why source(criteria) -> results makes more sense: the results definition is right next to the code that's going to be using that definition. If you put the results definition first as with SQL, then you have to scroll up to find the context (although perhaps Python's indentation sensitivity is the tripping point in this case). Not even mentioning the fact that the SQL way completely destroys any chance of code completion. I'm going to boldly state that the SQL way is literally objectively wrong, in that there is no world in which SQL's choice is superior for general querying. |
|
> or query/list comprehensions
List comprehensions are column first.