
1 Apr
2024
1 Apr
'24
9:53 a.m.
Issue #20405 has been updated by nobu (Nobuyoshi Nakada). vo.x (Vit Ondruch) wrote in #note-1:
I like this proposal. But there are other possibilities, such as:
~~~ (: This is comment :) ~~~
Thank you for the comment, but you may know `(:` can conflict existing code. The reason I selected `(|` is that `/:|)` is used as Matz's face (no beard version). ---------------------------------------- Feature #20405: Inline comments https://bugs.ruby-lang.org/issues/20405#change-107556 * Author: nobu (Nobuyoshi Nakada) * Status: Open ---------------------------------------- I propose a new inline comment syntax. ```ruby p (| This is a comment (| and nested one |) /:|) (:|) #=> :| ``` -- https://bugs.ruby-lang.org/