From: "matheusrich (Matheus Richard) via ruby-core" Date: 2024-04-16T19:44:37+00:00 Subject: [ruby-core:117539] [Ruby master Feature#20405] Inline comments Issue #20405 has been updated by matheusrich (Matheus Richard). I think, unironically, this could be a nice addition. Maybe with a syntax closer to the current comments? ```rb p #= This is a comment #= and nested one =# =# :| => :| ``` ---------------------------------------- Feature #20405: Inline comments https://bugs.ruby-lang.org/issues/20405#change-107930 * 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/