Hacker News new | ask | show | jobs
by apk-d 2224 days ago
Maybe my monkey programmer brain is broken already from doing syntax parsing all day, but I can never imagine any context where this formatting makes sense. I always place quotation marks "like this". The other way is not even consistent with the conventional parentheses placement (like this).
3 comments

I think it makes sense to include the punctuation inside the quotes if you are quoting the punctuation, and not if you are not.
That’s what I stick to. If a sentence begins and ends within a quote, the stop is also within the quote. If the sentence starts outside of quotes, I end it outside of quotes, regardless of whether it’s “correct”.
This is what I do. Technical writing should communicate your ideas to the reader as clearly as possible. Sometimes I think people who focus too much on 'correctness' in grammar and such forget writing and language is used to communicate, that's it's primary purpose. If rules leave ambiguity in the intent of the communication, maybe those rules just kind of suck.
But then technically you’d need to add additional punctuation to actually end the outer sentence, “like this!”. I have a firm preference of putting punctuation that does not belong to the quote itself outside of it, and when I want to add punctuation that does belong to the quote inside, I usually work around the problem above by just putting the quote after a colon: “like this!”
The english language is full of idiosyncrasies that don't quite make sense. Punc-quote is the correct "formal" way but informally you're free to do anything you want.
I think that's only necessarily true for the US.

Edit: I mean the punctuation inside of the quotes being traditional.

While I agree with you and refuse to do it the "traditional" way, there is some interesting reading about it here: https://style.mla.org/punctuation-and-quotation-marks/