Member-only story
A Search for the Whitespace Character
How do you represent nothing?
How do you represent nothing?
It’s a surprisingly challenging problem, which has spawned an annoying array of solutions.
For normal users, the typical method is to use a space. Here’s one:
See it? No? That’s one challenge. If you’re trying to draw out code — especially on paper — a space doesn’t really cut it when it comes to representing whitespace.
Underscore is a better option:
_
At least you can see it’s there. It’s a good substitute for an explicit space character if you’re writing out code on paper.
But there are some times when you need an underscore to be an underscore. What if you’re using in in a variable name? What if you’re using Regex, where it has an explicit, non-space meaning?
That’s where Unicode U+2423 comes it. Offically called the Open Box character, it was used starting in the 1980s to represent black space in handwritten code.
␣
Medium is able to show it. Many text editors are not.
I wanted the Open Box to be the symbol for this publication, but Photoshop couldn’t handle it. So I had to type one into Word, make it huge, screenshot…