Hacker News new | ask | show | jobs
by solox3 2164 days ago
Says the line with two different hyphenating styles.

It's an Easter egg.

2 comments

These look like brackets, not binary operators. So, that's one style, but a rather unobvious one, and also contradicts PEP8, which says (as the very first thing in the section on inline spaces!) to avoid whitespace immediately inside brackets.
So pedantic but I love it. For the GP, what you are looking for is them em dash (—) with no spaces around it, because the dash is its own form of punctuation.
A double-dash is a perfectly valid substitute for an em dash given that most (no?) keyboards have it on a key. Seems like a waste of time to always have to look up an escape code or copy/paste from somewhere when the intent of "--" is clear.
I don't hold random comments on the internet to the highest standard because I am not a monster. However they are not equivalent and the em dash is a sign of extra polish.
It’s option-shift-hyphen on a Mac. And you can get at em dashes on an iOS keyboard by long pressing the hyphen. Not so difficult.
Compose--- on anything with a compose key. Linux mostly and Windows with the WinCompose program.
Some style guides allow for surrounding the em dash with spaces. It's a matter of preference.