Hacker News new | ask | show | jobs
by tirrex 1888 days ago
What is the purpose of this? Does anybody find these more readable?
3 comments

It's like Van Halen and the brown M&Ms thing. It determines if the author of a C++ lexer, syntax highlighter, etc., read the Standard. Try splitting a digraph with \ and a newline.
> What is the purpose of this?

Its explained in the first two sentences of the page.

I like the use of "not" because it stands out more clearly than "!". "if (not (x and y))" seems more readable to me than "if (! (x && y))".
I agree, “!” is something easy to miss. I prefer “!=“ mostly for this reason.

I am just surprised I’ve never seen this in any code base before.