From: "make_now_just (Hiroya Fujinami) via ruby-core" Date: 2025-04-18T07:56:07+00:00 Subject: [ruby-core:121684] [Ruby Feature#20405] Inline comments Issue #20405 has been updated by make_now_just (Hiroya Fujinami). 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. ---------------------------------------- Feature #20405: Inline comments https://bugs.ruby-lang.org/issues/20405#change-112735 * 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/