[#86520] [Ruby trunk Bug#14681] `syswrite': stream closed in another thread (IOError) — samuel@...
Issue #14681 has been reported by ioquatix (Samuel Williams).
3 messages
2018/04/12
[#86755] [Ruby trunk Feature#14723] [WIP] sleepy GC — normalperson@...
Issue #14723 has been reported by normalperson (Eric Wong).
6 messages
2018/04/29
[ruby-core:86599] [Ruby trunk Feature#5352][Rejected] How about using <> to represent Here Document?
From:
matz@...
Date:
2018-04-19 07:52:27 UTC
List:
ruby-core #86599
Issue #5352 has been updated by matz (Yukihiro Matsumoto). Status changed from Assigned to Rejected Rejected. I don't want to change the basic syntax (without major benefit). Besides that, I want to keep `<>` for future syntax extension. Matz. ---------------------------------------- Feature #5352: How about using <> to represent Here Document? https://bugs.ruby-lang.org/issues/5352#change-71555 * Author: yimutang (Joey Zhou) * Status: Rejected * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) * Target version: Next Major ---------------------------------------- "<<" 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 = <SECT1>.upcase + <SECT2>.downcase aaaaaa SECT1 XXXXXX SECT2 ``` may be clearer than: ``` str = <<SECT1.upcase + <<SECT2.downcase ``` -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>