From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2024-04-01T08:53:56+00:00 Subject: [ruby-core:117396] [Ruby master Feature#20405] Inline comments 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/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/