Project

General

Profile

Actions

Feature #9678

closed

New heredoc syntax

Added by alexeymuranov (Alexey Muranov) about 10 years ago. Updated over 2 years ago.

Status:
Feedback
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
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0