top | item 33692506

(no title)

caioariede | 3 years ago

Love it! The only thing that was a “meh” for me was using pipe for comments. It’s the only thing that I found to be unintuitive, which I very much like to see whenever I’m looking at a new language.

discuss

order

mcluck|3 years ago

I kind of like it. It looks like a blockquote

HKH2|3 years ago

Do any other languages use it for comments?

Jtsummers|3 years ago

The only language I've seen pipe used with comments (not line comments though) is Common Lisp:

  #|
    This is a multi-line comment
  #|
    And they can be nested because this is really just a reader macro
  |#
  |#

I don't think I've ever seen a standalone | for comments, especially since it's so often used as bitwise or logical or.

And here they use \ for bitwise or, and the word `or` for logical or.