Comment by ape4
7 years ago
SQL reminds me of COBOL. Even replacing some of the UPPERCASE words in SQL with C-like symbols would be nice.
7 years ago
SQL reminds me of COBOL. Even replacing some of the UPPERCASE words in SQL with C-like symbols would be nice.
It's case insensitive, you can use lowercase if you like. The reason the UPPERCASE persists is frankly because most people like it that way. Or maybe I'm wrong about that and we're one preference cascade away from a major flip in public opinion. But personally, I rebelled against the UPPERCASE when I was first learning it, but I've since come to find the UPPERCASE to be quite comforting. I think it has a pleasing aesthetic quality, and I find it helps make large chunks of SQL less intimidating to read.
I think the main reason these days is that there's still a fair bit of SQL embedded in other languages, usually as string literals with placeholders. And then it provides a way to visually distinguish it from "normal" string literals.
You know the keywords don't have to be in uppercase, right?
That's just personal preference, in our shop we use lowercase for SQL reserved words.
They make this comparison in the post.
> Even replacing some of the UPPERCASE words in SQL with C-like symbols would be nice.
In EdgeQL the keywords are recognized in any case. It is a matter of personal style.
As is SQL
Yes, we are not debating that.