News for hackers. Stuff that matters.
Re:Stop defacing quotes with brackets by bobthepanda on Tuesday February 09, 2021 @11:30AM (#26079402)
But now you’ve basically doubled or tripled the length of the whole sentence.

The primary usage I see of this is to replace some second or third person pronoun with the actual name of the person, which is much simpler than appending a short biography of the person and trivially easy to verify.

Re:Stop defacing quotes with brackets by lucas_membrane on Tuesday February 09, 2021 @05:10PM (#26083060)
I've had this hit me directly with a serious sting. A company in which I was employed became subject of a state investigation, and the local newspaper wrote a story about the problem including a quote from a state investigator something like this: "They definitely have a problem (with XYZ)." XYZ was done in my department. The state investigator had made no mention of XYZ. The reporter had simply clarified the quote erroneously; XYZ had nothing to do with the problem. The state investigator would not say that he was mis-quoted, because the parenthetical material is not part of the quote, and the paper refused to correct the story for the same reason. But to any reader who does not know this obscure exception to the rule that what's in quotes is what they said, it meant I was the smartest guy in the room when and where things went bad.
Re:Stop defacing quotes with brackets by ddingus on Tuesday February 09, 2021 @12:41PM (#26080358)
That is already a thing. Simply put it in brackets and insert it into the quote.

Overwriting the quote makes the expression unclear, which does require readers seek original expressions or otherwise speculate.

Re:Stop defacing quotes with brackets by titzer on Tuesday February 09, 2021 @01:54PM (#26081186)
Yeah, that is a better solution. It's a simple, clear rule: never alter the original quote, but you can insert bracketed words to make it clearer.
Re:Stop defacing quotes with brackets by ddingus on Tuesday February 09, 2021 @03:30PM (#26082064)
And it's parsable.

I think back to the one period after sentence move we've seen play out for a while now.

When two spaces are used, end of sentence is a parsable thing, easily differentiated from other uses, such as abbreviations.

Without them, assistive technology gets capitalization wrong all the time.

This kind of thing makes problem spaces way larger and more complicated than they need to be.

Re:Stop defacing quotes with brackets by bobthepanda on Tuesday February 09, 2021 @02:30PM (#26081532)
I don’t think that “Heather spoke to [Sam] to the conference” vs “Heather spoke to her [Sam] at the conference” provides all that much meaningful clarity.
Re:Stop defacing quotes with brackets by ddingus on Tuesday February 09, 2021 @03:09PM (#26081868)
It comes down to what brackets mean, and the reader understanding what is quoted.

In your second example, the quote is clear, verbatim as quotes are intended to be.

In the first example, what has been clear, precise syntax is not a matter of ambiguity.

In your example, it's somewhat clear, but inference is required to understand what was said.

The example given in the article actually does bring genuine ambiguity to what would otherwise be a precise, easily understood expression:

They may groan when Corky, denied the massive funding he’s asked for, tells the town council he’s going to “go home and bite [his] pillow,” the way I do now.

Did Corky say, "go home and bite pillow" broken English style?

Or, did Corky say something else?

Until this construct, we would know because "[his]" would be added into quote context. It would not be a modifier, essentially hiding or changing the quote.

Notably, what Corky did say isn't actually present in the expression, meaning we have to now trust the author interpreting things for us.

Breaking the line with how brackets are used is going to lead to significantly increased ambiguity, and that's going to happen because it will be employed to spin or otherwise manage far less trivial examples, and sorting it out will all take considerably more effort than it all would otherwise be, given brackets are never normally used to modify a quote itself.

And all for a bit of flow? I don't buy it. The whole affair diminishes how robust brackets are and introduced ambiguity into expression that does not add any real value.

Re:Stop defacing quotes with brackets by zeroimpl on Tuesday February 09, 2021 @06:26PM (#26083922)
Whenever I see “go home and bite [his] pillow”, I’ve always assumed the person spoke quickly and/or skipped a word, which the editor thought should be added. It never occurred to me before now that the editor actually replaced a word!
Re:Stop defacing quotes with brackets by ddingus on Tuesday February 09, 2021 @07:14PM (#26084320)
Right? Prior to this discussion, my thought was similar, typo, or something benign.

Replacing a word breaks the syntax and brings ambiguity to some use cases involving brackets and quotes that did not have it before.

As I mentioned elsewhere, a similar thing happened with the one space vs. two spaces to end a sentence.

In that last sentence, there is now ambiguity after "vs. " where there was not before. Right now I am on desktop, but if I were to input that sentence on my Android, "two" would be auto-capitalized, even though I am mid sentence.

I see this headed a similar direction.

Cases where the actual verbatim expression may be made more clear with something added in brackets will now overlap with cases where someone wants to replace a word in a quote...

Sigh :(

Re:Stop defacing quotes with brackets by titzer on Tuesday February 09, 2021 @07:06PM (#26084263)
Me too, which lowers my opinion of the speaker!
Re:Stop defacing quotes with brackets by titzer on Tuesday February 09, 2021 @12:04PM (#26079858)
Yeah, there is a cost to being precise. We can think of other ways to make it shorter, but we should respect the integrity of what is in quotes. Another option:

Spitballing:

"It is not worth doing," she said, [it=foobar].

We do this all the time in programming languages. Without introducing too much syntax, this is doable.

Re:Stop defacing quotes with brackets by gugagore on Tuesday February 09, 2021 @12:14PM (#26079993)
I'd say we only do something like that in programming if there's a benefit to using other values for `it` in other contexts, and if we'd like to refer to a template `"It is not worth doing" by name.

If you're just going to use it once, or if all usages have `[it=foobar]`, I don't think you'd do it.

I could imagine doing something like what you mention if I had moved code from another context, and I wanted to have a commit that shows plainly that it was moved verbatim. But then I'd make subsequent commit where I do the necessary substitution.

Re:Stop defacing quotes with brackets by capableweb on Tuesday February 09, 2021 @03:12PM (#26081911)
> If you're just going to use it once, or if all usages have `[it=foobar]`, I don't think you'd do it.

If you never pulled out code into its own separate function just in order to name some lines of code, you should give it a try. You can avoid a lot of comments and/or confusion by just structuring your code in a way that allows you to name lines of code as concepts and abstractions. No need for it to happen more than once for you to do so.

Re:Stop defacing quotes with brackets by gugagore on Tuesday February 09, 2021 @11:02PM (#26085613)
I agree with using descriptive identifier names and using function names to express intent of lines of code.

But I don't understand your point in bringing it up here.

> "It is not worth doing," she said, [it=foobar]

  baz(it) = "$it is not worth doing"
  baz("foobar")
`it` is neither a descriptive identifier, nor did I see a suggestion for what the function `baz` could be called to make it descriptive.
Re:Stop defacing quotes with brackets by capableweb on Wednesday February 10, 2021 @01:26PM (#26092924)
It wasn't referring to the specific identifier "it" here, but more in general as I took your point to mainly be about "if there's a benefit to using other values for X in other contexts", meaning that putting things into variables only serves the functionality of reuse in different contexts, not also to name passages of code.