From: alexey.muranov@... Date: 2014-04-04T20:16:30+00:00 Subject: [ruby-core:61863] [CommonRuby - Feature #9678] New heredoc syntax Issue #9678 has been updated by Alexey Muranov. I have just realized this would cause a difficulty with pasting code into `irb`. This would not be the first, however -- the following cannot be pasted into `irb` either: class C def f 1 end end puts C.new .f ---------------------------------------- Feature #9678: New heredoc syntax https://bugs.ruby-lang.org/issues/9678#change-46082 * Author: Alexey Muranov * Status: Feedback * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- For whatever it is worth, i've just had this idea of a new heredoc syntax for some programming language: class C def f(x) print >>Message1 + >>Message2 Message1: > Literal text > ------------ > Here text. > Message2: >> Text with interpolation and escapes >> ----------------------------------- >> Here text with interpolation: #{ x }. >> end end -- https://bugs.ruby-lang.org/