From: matz@... (Yukihiro Matsumoto) Date: 2003-01-01T10:03:43+09:00 Subject: [ruby-dev:19263] Re: lstripped here-document (Re: comments and continuing strings on the next line) まつもと ゆきひろです In message "[ruby-dev:19261] lstripped here-document (Re: comments and continuing strings on the next line)" on 03/01/01, nobu.nakada@nifty.ne.jp writes: |しばらく前のruby-coreの話ですが、こういうのはどうでしょうか。 | | p <<-|EOS | | foo | | bar | EOS | # => " foo\n bar\n" | |つまり、<<-とterminatorの間にクォーテーション以外の記号があった場合、 |行頭の空白とその記号までを削除します。その記号がなければエラーです。 実装があるのは魅力的なのですが、記法の追加に関しては慎重であ るべきという観点から、急ぐべきではないでしょう。いろいろな人 の意見を聴きたいです。来週のruby-dev summaryからのruby-talk の人々の反応も見てみたいものですね。