5 ms·
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
by bobthepanda 6y ago
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.
- titzer 6y agoYeah, 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.
- gugagore 6y agoI'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.
- capableweb 6y ago> 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.
- gugagore 6y agoI 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.
- capableweb 6y agoIt 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.
- ddingus 6y agoThat 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.
- titzer 6y agoYeah, 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.
- ddingus 6y agoAnd 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.
- bobthepanda 6y agoI 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.
- ddingus 6y agoIt 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.
- lucas_membrane 6y agoI'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.