3 ms·
Maybe. But expecting people to remember a ; (or similar) at the end of lines is going to cause more frequent problems from a UX performance. So you’re better o
by hnlmorg 1y ago
Maybe. But expecting people to remember a ; (or similar) at the end of lines is going to cause more frequent problems from a UX performance.
So you’re better off accepting the edge cases problems that white space introduces considering the benefits outweighs the pain.
- layer8 1y agoThat’s not what I meant. It’s okay for the line break itself to be significant. But whitespace immediately preceding the line break shouldn’t be significant, due to its general invisibility.
- hnlmorg 1y agoIs CR considered whitespace? I always thought that was classed as a non-printable control character. But maybe I’m wrong? Or are you talking about SP preceding CR and/or LF?
- layer8 1y agoLine breaks are considered whitespace, hence CR is considered whitespace. It is also a control character. This is similar to TAB, or indeed LF. See here for example: https://en.cppreference.com/w/c/string/byte/isspace https://en.cppreference.com/w/c/string/byte/isspace Or here for Unicode: https://en.wikipedia.org/wiki/Whitespace_character#Unicode https://en.wikipedia.org/wiki/Whitespace_character#Unicode
- hnlmorg 1y agoAhh that makes sense then. Thanks for the responses