|
|
|
|
|
by oarabbus_
2337 days ago
|
|
>Why do you say that it has no meaning? This is about differentiating SQL keywords from table and column identifiers. One could also type like `CoUnT(dIsTiNcT CaSe WhEn ... EnD)` to make the keywords stand out. Casing has absolutely no meaning in SQL outside of single quotes. On the other hand, (in python for example) SOME_FUNCTION() and some_function() both have meaning. They do not refer to the same thing. >but are you seriously suggesting that you can skim for the identifiers faster in the all-lowercase one when there are no color hints? Yes. Especially since my eyes don't get stuck on the massive blobs of ALL CAPS YELLING TEXT in the select. |
|
That the language doesn't enforce a meaning doesn't mean that we can't add meaning to the casing. This is like how in multiple languages it's convention to write constant variables in all-caps even though few languages enforce it.