From: Nobuyoshi Nakada Date: 2011-09-24T05:25:07+09:00 Subject: [ruby-core:39686] [Ruby 1.9 - Feature #5352] How about using <> to represent Here Document? Issue #5352 has been updated by Nobuyoshi Nakada. Joey Zhou wrote: > Unlike Perl, in which "<>" is a very very frequently used operator to read lines from a filehandle, in Ruby, "<>" has no meaning. So I think it can be used to represent Here Document, so as to reduce the possibility of misunderstanding method "<<" and here-document token "<<". And In my opinion, <> is more clear than <<, because it looks like kind of brackets. I'm somewhat negative. It looks like Perl's "<>" but is pretty different, so I'm afraid that it would be also confusing. ---------------------------------------- Feature #5352: How about using <> to represent Here Document? http://redmine.ruby-lang.org/issues/5352 Author: Joey Zhou Status: Open Priority: Normal Assignee: Category: Target version: "<<" is a frequently used method in text manipulation. Meanwhile, it's also the beginning token of a here-document. Sometimes it may be confusing to newbies. Unlike Perl, in which "<>" is a very very frequently used operator to read lines from a filehandle, in Ruby, "<>" has no meaning. So I think it can be used to represent Here Document, so as to reduce the possibility of misunderstanding method "<<" and here-document token "<<". And In my opinion, <> is more clear than <<, because it looks like kind of brackets. For example, str = .upcase + .downcase aaaaaa SECT1 XXXXXX SECT2 may be clearer than: str = <