News for hackers. Stuff that matters.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by mmooss on Friday March 28, 2025 @12:18AM (#43501482)
The AP Style Manual, a/the leading source for US journalism at least, says

  <word> <space> <dash> <space> <word>
Outside of journalism, usually there is no padding, only,

  <word> <dash> <word>
I'm with you: For searches, the spaces make the words easier to parse. Those rules predate computers, I would guess.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by lxgr on Friday March 28, 2025 @12:25AM (#43501525)
> <word> <dash> <word>

That one I’d usually parse as a hyphen, as in e.g. well-known. “Word space dash space word” is much clearer, in my view.

> The AP Style Manual, a/the leading source for US journalism

One of the things I can easily get away with by not being a US journalist :)

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by stouset on Friday March 28, 2025 @02:37AM (#43502215)
It’s quite hard to mistake an em dash for a hyphen in a proportional font.

self-fulfilling

self—fulfilling

One of these looks very, very wrong.

Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by johnisgood on Friday March 28, 2025 @02:42AM (#43502255)
I agree, although I still prefer spaces between —.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by mattl on Friday March 28, 2025 @12:32AM (#43501561)
Chicago Manual of Style has no spaces, so there’s some variation at least.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by mmooss on Friday March 28, 2025 @01:07AM (#43501741)
CMOS is not journalism, so it's not variation from the GP?
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by mattl on Friday March 28, 2025 @01:45AM (#43501936)
A wider number of people use either of them. Every place I’ve used used CMOS which I now use with others.
Re:How to Use Em Dashes (–), En Dashes (–), and Hyphens (-) by ghaff on Friday March 28, 2025 @02:56AM (#43502338)
Company I used to work for used AP for things like press releases and, I think, official blog posts and Chicago plus a couple different tech style guides for everything else.

Basically, we didn’t like some things in AP but we wanted to make it easy for journalists to copy/paste.