News for hackers. Stuff that matters.
Re:Claude Code runs Git reset –hard origin/main against proj... by kibwen on Sunday March 29, 2026 @08:49PM (#47569152)
Let's focus on the real issue here, which is that HN has apparently normalized the double hyphen in the title to an en dash--yes, an en dash, not even an em dash.
Re:Claude Code runs Git reset –hard origin/main against proj... by dragonwriter on Sunday March 29, 2026 @11:18PM (#47570048)
That's LaTeX convention, double hyphen is an en-dash, triple hyphen is an em-dash.
Re:Claude Code runs Git reset –hard origin/main against proj... by byronsharman on Sunday March 29, 2026 @09:14PM (#47569319)
I agree that it should be left as a double hyphen, but an en dash is far more appropriate considering the decades-long precedent set by LaTeX (and continued by Typst).
Re:Claude Code runs Git reset –hard origin/main against proj... by ajross on Sunday March 29, 2026 @09:24PM (#47569383)
It's a command line argument. The undeniably correct way to render it is with two minus signs[1] and absolutely not something non-ascii.

[1] Not strictly a hyphen, which has its own unicode point (0x2010) outside of ascii. Unicode embraced the ambiguity by calling this point (0x2d) "HYPHEN-MINUS" formally, but really its only unique typographic usage is to represent subtraction.

Re:Claude Code runs Git reset –hard origin/main against proj... by dragonwriter on Sunday March 29, 2026 @11:22PM (#47570077)
> The undeniably correct way to render it is with two minus signs[1] and absolutely not something non-ascii.

> [1] Not strictly a hyphen, which has its own unicode point (0x2010) outside of ascii. Unicode embraced the ambiguity by calling this point (0x2d) "HYPHEN-MINUS" formally, but really its only unique typographic usage is to represent subtraction.

Strictly, its as you note, the hyphen-minus, and Unicode has separate, disambiguated code points for both hyphen (0x2010) and minus (0x2212); hyphen-minus has no "unique typographic usage".

Re:Claude Code runs Git reset –hard origin/main against proj... by ajross on Monday March 30, 2026 @09:46AM (#47574291)
I said that badly. What I meant was that ASCII 0x2d is, in fact, used as the only minus sign in basically all markup and presentation layers. (Mostly because math layout tends to go through its own interpreter -- what lives in "the unicode text" is always "markup" of some kind). The unicode value is ignored AFAIK, nothing emits it or interprets it specially. That is not true of the hyphen, which does get special treatment at the presentation layer in fonts and whatnot.
Re:Claude Code runs Git reset –hard origin/main against proj... by minitech on Sunday March 29, 2026 @10:15PM (#47569659)
They meant “more appropriate [than an em dash]”. And that minus sign usage of hyphen-minus isn’t unique in Unicode either – see U+2212 MINUS SIGN.
Re:Claude Code runs Git reset –hard origin/main against proj... by ajross on Sunday March 29, 2026 @10:29PM (#47569752)
But... it's not more appropriate than an em dash for representing command line arguments? I don't see how either is any more incorrect than the other. There's a uniquely correct answer here and the em-dash is not it. Period.
Re:Claude Code runs Git reset –hard origin/main against proj... by minitech on Sunday March 29, 2026 @10:45PM (#47569846)
It’s about the top-level comment’s horror that ”--” was substituted with “an en dash, not even an em dash”. If you’re picking a substitution for “--”, en dash makes more sense. The comment you originally replied to had already agreed “that it should be left as a double hyphen”.
Re:Claude Code runs Git reset –hard origin/main against proj... by ajross on Sunday March 29, 2026 @11:08PM (#47569990)
> If you’re picking a substitution for “--”, en dash makes more sense.

No, it doesn't? This seems like crazy talk to me, like "If you're picking a substitute for saffron, blood plasma makes more sense than monocrystalline silicon". Like, what?

It makes zero sense to substitute this at all. It's exactly what it says it is, the "--hard" command line option to "git reset", and you write it in exactly one way.

Re:Claude Code runs Git reset –hard origin/main against proj... by minitech on Sunday March 29, 2026 @11:19PM (#47570056)
Nobody is confused or disagrees about the `--hard` part. It was a minor tangent about contexts where these ASCII substitutions are established, like LaTeX (`` -> “, '' -> ”, -- -> –, --- -> —, etc.)
Re:Claude Code runs Git reset –hard origin/main against proj... by lynx97 on Monday March 30, 2026 @12:43AM (#47570455)
The "sed" expressions that power the title "cleanup" here do overshoot quite often. It ruins --long-command-arguments and it definitely also reuins cpp::namespaces. Quite curious why these obvious shortcomings are not being fixed.
Re:Claude Code runs Git reset –hard origin/main against proj... by bluedel on Monday March 30, 2026 @08:58AM (#47573704)
It's not a command line argument, it's part of the title of a hackernews post.
Re:Claude Code runs Git reset –hard origin/main against proj... by 0xbadcafebee on Sunday March 29, 2026 @09:35PM (#47569456)
Article: "Major issue with most popular AI coding tool"

comments: "ThE tItLe iS aI cOded !!!1"

Re:Claude Code runs Git reset –hard origin/main against proj... by minitech on Sunday March 29, 2026 @10:17PM (#47569678)
No, the comment was pointing out that the HN platform automatically replaces `--` in titles with `–`. (I don’t know if that’s true, but that was the intent. Nothing to do with AI.)
Re:Claude Code runs Git reset –hard origin/main against proj... by butterlesstoast on Sunday March 29, 2026 @09:48PM (#47569533)
The best community
Re:Claude Code runs Git reset –hard origin/main against proj... by layer8 on Monday March 30, 2026 @03:18AM (#47571393)
The article is wrong and the issue is closed.
Re:Claude Code runs Git reset –hard origin/main against proj... by yunwal on Monday March 30, 2026 @07:58AM (#47573127)
Where did they say the title is ai coded?
Re:Claude Code runs Git reset –hard origin/main against proj... by tom_ on Sunday March 29, 2026 @09:43PM (#47569507)
Pro tip: pros don't copy and paste from HN titles straight into the command line.

(Or... do they?? Hmm, ok, maybe I need to let this roll around in my mind.)

Re:Claude Code runs Git reset –hard origin/main against proj... by johnisgood on Sunday March 29, 2026 @09:11PM (#47569304)
And it should be "--" to begin with, i.e. "--hard".
Re:Claude Code runs Git reset –hard origin/main against proj... by SoftTalker on Sunday March 29, 2026 @09:39PM (#47569478)
Two hyphens for an en-dash, three for an em-dash.
Re:Claude Code runs Git reset –hard origin/main against proj... by rtpg on Sunday March 29, 2026 @08:52PM (#47569168)
iOS keyboard autocomplete
Re:Claude Code runs Git reset –hard origin/main against proj... by smallerize on Sunday March 29, 2026 @09:04PM (#47569254)
Surely its copy and paste though?
Re:Claude Code runs Git reset –hard origin/main against proj... by chatmasta on Sunday March 29, 2026 @09:19PM (#47569357)
You underestimate just how annoying iOS autocomplete can be.
Re:Claude Code runs Git reset –hard origin/main against proj... by SilverElfin on Sunday March 29, 2026 @09:26PM (#47569396)
Not just iOS but macOS too. And it seems to only get worse. And with no notice to users. And no response in their forums.
Re:Claude Code runs Git reset –hard origin/main against proj... by dylan604 on Sunday March 29, 2026 @11:16PM (#47570040)
oh, no, I notice, but typically not until after hitting send
Re:Claude Code runs Git reset –hard origin/main against proj... by chatmasta on Sunday March 29, 2026 @11:57PM (#47570232)
I swear sometimes it doesn’t apply the corrections until I submit the form. It’s infuriating.
Re:Claude Code runs Git reset –hard origin/main against proj... by alwillis on Monday March 30, 2026 @02:42AM (#47571150)
I’ve been using Cotypist on macOS [1].

Sometimes it feels like it’s reading my mind when I’m typing.

[1]: https://cotypist.app/

Re:Claude Code runs Git reset –hard origin/main against proj... by christoph on Monday March 30, 2026 @12:53AM (#47570514)
I really don’t! I switched it all of months ago - autocomplete, autocaps, all of it. I reached a point where the constant frustration had to be worse than any productivity gain it was hoping to offer.

A few months on… I like it! Frustration is all gone, any errors are just on me now, and it forces me to slow down a bit and use the brain a bit more!

Re:Claude Code runs Git reset –hard origin/main against proj... by jonahx on Sunday March 29, 2026 @09:00PM (#47569230)
desktop test --
Re:Claude Code runs Git reset –hard origin/main against proj... by CarVac on Sunday March 29, 2026 @08:58PM (#47569213)
double hyphens –

triple hyphens —

Re:Claude Code runs Git reset –hard origin/main against proj... by AnonC on Monday March 30, 2026 @02:31AM (#47571082)
For me on iOS:

Double hyphens —

Triple hyphens —-

Actual em dash (typed with more effort, but HN changes it) —

The triple hyphens has a gap in it separating the autocorrected en dash and the hyphen.

Re:Claude Code runs Git reset –hard origin/main against proj... by mrcwinn on Sunday March 29, 2026 @09:38PM (#47569472)
Apple actually had the nerve to make it a point to say they’d made their keyboard intelligence better. What a joke. Can’t keyboard, my ass!