logoalt Hacker News

tjoff • today at 12:13 PM • 1 reply • view on HN

I get the desire to filter that out, not sure whether I'd classify it as whitespace though.


Replies

LoganDark • today at 2:11 PM

True, rendering out of bounds doesn't make something actually whitespace, it just means it could look like whitespace. Though, consider the case where someone is looking to detect if a character is whitespace, when what they actually want is to detect if it could look like whitespace. That's where context comes into play. Irrelevant if it's not about the looks, but potentially relevant if it is, hence why I figured I'd leave a quick comment about it here.