Project

General

Profile

Feature #9678

New heredoc syntax

Added by alexeymuranov (Alexey Muranov) over 6 years ago. Updated over 6 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:61696]

Description

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

Also available in: Atom PDF