From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2025-04-19T01:37:18+00:00 Subject: [ruby-core:121689] [Ruby Feature#20405] Inline comments Issue #20405 has been updated by nobu (Nobuyoshi Nakada). make_now_just (Hiroya Fujinami) wrote in #note-5: > I'd propose `(= ... =)` for inline comments because Ruby already has `=begin` and `=end` syntax and it seems to relate to that. > > ``` > p (= ^..^ =) :nyan > ``` > > Also, I believe that `(= ... =)` does not break the current syntax. Cool. ---------------------------------------- Feature #20405: Inline comments https://bugs.ruby-lang.org/issues/20405#change-112740 * 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/lists/ruby-core.ml.ruby-lang.org/