From: alexey.muranov@... Date: 2014-03-27T20:13:55+00:00 Subject: [ruby-core:61731] [CommonRuby - Feature #9678] New heredoc syntax Issue #9678 has been updated by Alexey Muranov. Rodrigo Rosenfeld Rosas wrote: > What should the scope for interpolation be? I had thought about it, but i did not see a better option than to require the heredoc to be defined immediately after the line where it is used, as usual. ---------------------------------------- Feature #9678: New heredoc syntax https://bugs.ruby-lang.org/issues/9678#change-45971 * 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/