Hacker News new | ask | show | jobs
by Joker_vD 301 days ago
> " ".length == 36

Heh. In my code, I always (idiosyncratically, I admit) spell '\x20' as '\x20' (or even just as 0x20, if it's C), unless it's a part of a multicharacter string e.g. "Hello world!": it just feels wrong to have an empty space inside single quotes. Is it really just U+0020 in there? Is it supposed to be U+0020 there? Silly worries, I know, but I just don't like the way ' ' looks.

3 comments

You should read the article...
Is the article about HN stripping emojis (and some other Unicode code points) from the title of another HN submission?
Yes, it is.
Amazing! So if I ever were to write a blog post e.g. "Why ' ' != ' '", I guess I better title it "Why '\u2744\ufe0f' != '\x20'" to avoid confusion on HN.

Edit: as demonstrated by this very comment.

If you are on Chrome, hover your mouse over the link to the article and look at the URL displayed in the bottom left corner (at least that's where Chrome puts it on my machine).
A good text editor will make all whitespace variants visually distinct.