[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61700] [CommonRuby - Feature #9678] New heredoc syntax

From: alexey.muranov@...
Date: 2014-03-26 14:06:58 UTC
List: ruby-core #61700
Issue #9678 has been updated by Alexey Muranov.


In fact, to be able to use text blocks without terminating "new line" character, something like this can be uses:

    print %("#{ >>MSG1 }"\n) + >>MSG2 + >>MSG3
    MSG1:
    > Some text not ending with NewLine character
    MSG2:
    > Some more text, with NewLine at the end
    >-
    MSG3:
    > And more text, without NewLine

Output:

    "Some text not ending in NewLine character"
    Some more text, with NewLine at the end
    And more text

----------------------------------------
Feature #9678: New heredoc syntax
https://bugs.ruby-lang.org/issues/9678#change-45949

* Author: Alexey Muranov
* Status: Open
* 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/

In This Thread

Prev Next