I would consider that behaviour a bug. To have pipes and braces with different precedence in the syntax relative to comments is IMO a mistake.

Pipes and braces are very similar in that they are both delimiting syntax so I think comments should ignore both since the only thing defining single-line comments is that they run to the end of the line. It'd be far easier to scan code if you knew that a comment at the start of the line meant everything on that line is definitely a comment without exception.

Since comments are made for people reading the code and have no relevance to code execution it makes sense that they are tailored to helping people, well, read the code. This is how single-line comments work in all other languages I'm aware of.


Spelling mistakes, grammatical errors, and stupid comments are intentional.