I was raised properly; I always put “punctuation,” or commas and periods at least, inside quotation marks.
“Baby, it’s cold outside,” he said.
Of course other punctuation, such as semicolons, is another matter, which I don’t want to discuss here.
But even as a wee tot I felt the “commas inside” rule didn’t make much sense. To my way of thinking, the comma refers to the whole piece inside the quotes, not the very last word. But I ignored my misgivings and followed the rule.
Then, a couple of years ago, I started studying programming. In programming languages, commas generally go outside of quotes, as is only logical. You’re making a statement like “quote”, comma, “quote”, and what’s inside the quotation marks is what counts; the comma is the connector BETWEEN the quotes. A comma inside the quote marks would just throw things off, so naturally you put it outside.
I would like "eggs", "bread", and "bananas".
There is no ambiguity here. I want only eggs, not eggs plus a comma. What’s inside the quote marks is inviolate – the item itself. The comma separates items from one another.
But as I have converted to this way of thinking (confirming my infant suspicions) since I began studying programming. NOW, I’m schizophrenic about it. At times, in general writing, I punctuate inside the quote marks; at times, outside. I can’t make up my mind which method is right. This thread exists because tonight I noticed myself using BOTH methods in a single post. I’m not totally ignorant, just undecided.
So, which method do Dopers prefer?