From: Gavin Sinclair Date: 2003-01-15T10:22:55+09:00 Subject: Re: ruby-dev summary 19198-19345 On Wednesday, January 15, 2003, 4:31:22 AM, Kazuo wrote: > [ruby-dev:19261] lstripped here-document > Nobu Nakada proposed the idea for a new here-document style inspired by > [ruby-talk:50473]. In his idea, if you assign a character (except > quotes) after the here-document indicator "<<-", All blanks and > assigned character at the head of each line will be deleted. > Here is a example assigning '|': > p <<-|EOS > | foo > | bar > EOS > # => " foo\n bar\n". > He already posted a patch to add this function. Matz wants any > comments for the idea from all Rubyists. Well, if he wants comments from *all* Rubyists, ... that's a lot of comments. Anyway. I want this functionality so bad I can taste it. The Perl6 idea is interesting, and on the face of simpler. But the idea above is quite elegant and pretty, and with a good editor, easy to edit. Gavin